aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 08278d2..c50dd1c 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -557,7 +557,8 @@ func handleGetDiscoItems(s xmpp.Sender, iq *stanza.IQ, di *stanza.DiscoItems) {
}
commands := telegram.GetCommands(cmdType)
- for name, command := range commands {
+ for _, name := range telegram.SortedCommandKeys(commands) {
+ command := commands[name]
di.AddItem(iq.To, name, telegram.CommandToHelpString(name, command))
}
} else {