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

This commit is contained in:
Yann Leboulanger 2007-10-01 09:40:34 +00:00
parent 3ca2ed1803
commit ebfa1eba40
1 changed files with 2 additions and 0 deletions

View File

@ -288,6 +288,8 @@ class ConnectionCommands:
iq = iq_obj.buildReply('result') iq = iq_obj.buildReply('result')
jid = helpers.get_full_jid_from_iq(iq_obj) jid = helpers.get_full_jid_from_iq(iq_obj)
q = iq.getTag('query') 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(): for node, cmd in self.__commands.iteritems():
if cmd.isVisibleFor(self.isSameJID(jid)): if cmd.isVisibleFor(self.isSameJID(jid)):