aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-05-04 18:36:55 +0200
committerAlex Auvolat <alex@adnab.me>2020-05-04 18:36:55 +0200
commitaa6c5628e9b48303826ee0fa5fbb826e2c6cf54f (patch)
tree22ac40893f06ce91f0755844a4e70197925a5da5 /account.go
parent1d54a50c31cb788bf786397ea5664bd02bfe36fb (diff)
downloadeasybridge-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.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/account.go b/account.go
index 0b480d6..b14354c 100644
--- a/account.go
+++ b/account.go
@@ -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 {