-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/bridge/MatrixHandler.ts: handle replying to self
When someone sent a message: <f_[mtrx]> Hello? And then replied to their own message: <f_[mtrx]> > <@Funderscore:nova.astraltech.org> Hello? Hi? What would be sent on IRC would either be this: <f_[mtrx]> Hello? <f_[mtrx]> f_[mtrx]: Hi? Or: <f_[mtrx]> Hello? -- a while later -- <f_[mtrx]> f_[mtrx]: "Hello?" <- Hi? Both of which are confusing because usually nobody pings themself on IRC. This commit treats replies to self differently, and introduces a new `selfReplyTemplate` config option, so that the reply gets bridged as: <f_[mtrx]> <f_[mtrx]> Hello? -- a while later -- <f_[mtrx]> Hi? Or: <f_[mtrx]> Hi? Which is a bit more natural. Signed-off-by: Ferass El Hafidi <[email protected]>
- Loading branch information
1 parent
71af6a3
commit f6999da
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters