diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-17 21:19:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-17 21:19:28 +0100 |
commit | f7ee64cdfe599fce4bbc778c189538b26053d543 (patch) | |
tree | f933fe12d42a46c84c2515154a962a11dfaa725d /appservice | |
parent | ad123342f7ed0a0809b51189b59fe9a1ff2848ce (diff) | |
download | easybridge-f7ee64cdfe599fce4bbc778c189538b26053d543.tar.gz easybridge-f7ee64cdfe599fce4bbc778c189538b26053d543.zip |
Fix query/join with invalid IDs (for IRC)
Diffstat (limited to 'appservice')
-rw-r--r-- | appservice/server.go | 7 |
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) |