get command list only if server answer with commands namespace. fixes #3460

This commit is contained in:
Yann Leboulanger 2007-09-25 10:46:41 +00:00
parent bdf477e05c
commit cd99628a94
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []