diff options
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 { |