diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-05 13:54:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-05 13:54:53 +0200 |
commit | 88e435052ca831e099e1b7c6a108f1a0fb2596cb (patch) | |
tree | 7a799e36c99c54c25faff9b5a4bc66618e7da85f | |
parent | 19ab6edda27d18500f67da58d1c08f21bd500b69 (diff) | |
download | easybridge-88e435052ca831e099e1b7c6a108f1a0fb2596cb.tar.gz easybridge-88e435052ca831e099e1b7c6a108f1a0fb2596cb.zip |
I'm stupid
-rw-r--r-- | server.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -268,7 +268,7 @@ func handleSystemMessage(mxid string, msg string) { ezbrSystemSendf(mxid, "No account currently configured") } case "join": - if len(cmd) != 2 { + if len(cmd) != 3 { ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <room id>", cmd[0]) return } @@ -283,7 +283,7 @@ func handleSystemMessage(mxid string, msg string) { ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1]) } case "query", "talk": - if len(cmd) != 2 { + if len(cmd) != 3 { ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <user id>", cmd[0]) return } @@ -310,7 +310,7 @@ func handleSystemMessage(mxid string, msg string) { ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1]) } case "search": - if len(cmd) < 2 { + if len(cmd) < 3 { ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <name>", cmd[0]) return } |