diff options
author | Alex Auvolat <alex@adnab.me> | 2020-05-04 18:36:55 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-05-04 18:36:55 +0200 |
commit | aa6c5628e9b48303826ee0fa5fbb826e2c6cf54f (patch) | |
tree | 22ac40893f06ce91f0755844a4e70197925a5da5 /account.go | |
parent | 1d54a50c31cb788bf786397ea5664bd02bfe36fb (diff) | |
download | easybridge-aa6c5628e9b48303826ee0fa5fbb826e2c6cf54f.tar.gz easybridge-aa6c5628e9b48303826ee0fa5fbb826e2c6cf54f.zip |
Notify user of stuff going on in backends (not done for FB Messenger)
Diffstat (limited to 'account.go')
-rw-r--r-- | account.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -182,7 +182,7 @@ func LoadDbAccounts(mxid string, key *[32]byte) { func (a *Account) ezbrMessagef(format string, args ...interface{}) { msg := fmt.Sprintf(format, args...) - msg = fmt.Sprintf("%s: %s", a.Protocol, msg) + msg = fmt.Sprintf("%s %s: %s", a.Protocol, a.AccountName, msg) ezbrSystemSend(a.MatrixUser, msg) } @@ -231,6 +231,10 @@ func (a *Account) delAutojoin(roomId RoomID) { // ---- Begin event handlers ---- +func (a *Account) SystemMessage(msg string) { + a.ezbrMessagef("%s", msg) +} + func (a *Account) SaveConfig(config Configuration) { a.Config = config if key, ok := userKeys[a.MatrixUser]; ok { |