diff src/plugins/plugin_xep_0050.py @ 1495:987e74cbb839

plugin XEP-0050: fixed crash on empty node in addAdHocCommand
author Goffi <goffi@goffi.org>
date Tue, 25 Aug 2015 20:20:47 +0200
parents 74ddb4cc2ff9
children 5ddc4cf251fa
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0050.py	Tue Aug 25 20:02:50 2015 +0200
+++ b/src/plugins/plugin_xep_0050.py	Tue Aug 25 20:20:47 2015 +0200
@@ -483,8 +483,7 @@
         """
         # 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: