Author: asterix Date: 2007-10-01 11:40:34 +0200 (Mon, 01 Oct 2007) New Revision: 8881
Modified: trunk/src/common/commands.py Log: add node attribute when we reply to the adhoc command list request
Modified: trunk/src/common/commands.py =================================================================== --- trunk/src/common/commands.py 2007-10-01 06:03:00 UTC (rev 8880) +++ trunk/src/common/commands.py 2007-10-01 09:40:34 UTC (rev 8881) @@ -288,6 +288,8 @@ 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)):