I'm stupid
This commit is contained in:
parent
19ab6edda2
commit
88e435052c
1 changed files with 3 additions and 3 deletions
|
@ -268,7 +268,7 @@ func handleSystemMessage(mxid string, msg string) {
|
||||||
ezbrSystemSendf(mxid, "No account currently configured")
|
ezbrSystemSendf(mxid, "No account currently configured")
|
||||||
}
|
}
|
||||||
case "join":
|
case "join":
|
||||||
if len(cmd) != 2 {
|
if len(cmd) != 3 {
|
||||||
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <room id>", cmd[0])
|
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <room id>", cmd[0])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,7 @@ func handleSystemMessage(mxid string, msg string) {
|
||||||
ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1])
|
ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1])
|
||||||
}
|
}
|
||||||
case "query", "talk":
|
case "query", "talk":
|
||||||
if len(cmd) != 2 {
|
if len(cmd) != 3 {
|
||||||
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <user id>", cmd[0])
|
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <user id>", cmd[0])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,7 @@ func handleSystemMessage(mxid string, msg string) {
|
||||||
ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1])
|
ezbrSystemSendf(mxid, "No account with name or using protocol %s", cmd[1])
|
||||||
}
|
}
|
||||||
case "search":
|
case "search":
|
||||||
if len(cmd) < 2 {
|
if len(cmd) < 3 {
|
||||||
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <name>", cmd[0])
|
ezbrSystemSendf(mxid, "Usage: %s <protocol or account> <name>", cmd[0])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue