aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
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 {