plugin XEP-0050: fixed crash on empty node in addAdHocCommand

This commit is contained in:
Goffi 2015-08-25 20:20:47 +02:00
commit 0fd4e7732a

View file

@ -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: