Skip to content
Snippets Groups Projects
Commit ebfa1eba authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add node attribute when we reply to the adhoc command list request

parent 3ca2ed18
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,8 @@ class ConnectionCommands:
iq = iq_obj.buildReply('result')
jid = helpers.get_full_jid_from_iq(iq_obj)
q = iq.getTag('query')
# buildReply don't copy the node attribute. Re-add it
q.setAttr('node', xmpp.NS_COMMANDS)
for node, cmd in self.__commands.iteritems():
if cmd.isVisibleFor(self.isSameJID(jid)):
......
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