From cd99628a946a0f49f8659ee1959c45d05356428c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 25 Sep 2007 10:46:41 +0000 Subject: [PATCH] get command list only if server answer with commands namespace. fixes #3460 --- src/adhoc_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adhoc_commands.py b/src/adhoc_commands.py index c2c2282aa..c929c156d 100644 --- a/src/adhoc_commands.py +++ b/src/adhoc_commands.py @@ -445,7 +445,7 @@ class CommandWindow: # no commands => no commands stage # commands => command selection stage query = response.getTag('query') - if query: + if query and query.getAttr('node') == xmpp.NS_COMMANDS: items = query.getTags('item') else: items = []