aboutsummaryrefslogtreecommitdiff
path: root/appservice/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'appservice/server.go')
-rw-r--r--appservice/server.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/appservice/server.go b/appservice/server.go
index da01e07..2585e2a 100644
--- a/appservice/server.go
+++ b/appservice/server.go
@@ -230,7 +230,12 @@ func handleSystemMessage(mxid string, msg string) {
}
if account != nil {
quser := connector.UserID(cmd[2])
- account.Conn.Invite(quser, connector.RoomID(""))
+ err := account.Conn.Invite(quser, connector.RoomID(""))
+ if err != nil {
+ ezbrSystemSendf(mxid, "%s", err)
+ return
+ }
+
quser_mxid, err := dbGetMxUser(account.Protocol, quser)
if err != nil {
ezbrSystemSendf(mxid, "%s", err)