Skip to content
Snippets Groups Projects
Commit 2e16b3a5 authored by Liorithiel's avatar Liorithiel
Browse files

Commands: Fix TB when someone executes an unknown command.

parent b902d06e
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,12 @@ class ConnectionCommands:
sessionid = cmd.getAttr('sessionid')
if sessionid is None:
# we start a new command session... only if we are visible for the jid
# and command exist
if node not in self.__commands.keys():
self.connection.send(
xmpp.Error(iq_obj, xmpp.NS_STANZAS+' item-not-found'))
raise xmpp.NodeProcessed
newcmd = self.__commands[node]
if not newcmd.isVisibleFor(self.isSameJID(jid)):
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment