get command list only if server answer with commands namespace. fixes #3460
This commit is contained in:
parent
bdf477e05c
commit
cd99628a94
|
@ -445,7 +445,7 @@ class CommandWindow:
|
||||||
# no commands => no commands stage
|
# no commands => no commands stage
|
||||||
# commands => command selection stage
|
# commands => command selection stage
|
||||||
query = response.getTag('query')
|
query = response.getTag('query')
|
||||||
if query:
|
if query and query.getAttr('node') == xmpp.NS_COMMANDS:
|
||||||
items = query.getTags('item')
|
items = query.getTags('item')
|
||||||
else:
|
else:
|
||||||
items = []
|
items = []
|
||||||
|
|
Loading…
Reference in New Issue