plugin XEP-0050: fixed crash on empty node in addAdHocCommand
This commit is contained in:
parent
94eaf21945
commit
0fd4e7732a
1 changed files with 1 additions and 2 deletions
|
|
@ -483,8 +483,7 @@ class XEP_0050(object):
|
|||
"""
|
||||
# FIXME: "@ALL@" for profile_key seems useless and dangerous
|
||||
|
||||
node = node.strip()
|
||||
if not node:
|
||||
if node is None:
|
||||
node = "%s_%s" % ('COMMANDS', uuid4())
|
||||
|
||||
if features is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue