From 0fd4e7732a7778fc281e1ee3db3774c1b8604183 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 25 Aug 2015 20:20:47 +0200 Subject: [PATCH] plugin XEP-0050: fixed crash on empty node in addAdHocCommand --- src/plugins/plugin_xep_0050.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/plugin_xep_0050.py b/src/plugins/plugin_xep_0050.py index f82a4125..11c221b4 100644 --- a/src/plugins/plugin_xep_0050.py +++ b/src/plugins/plugin_xep_0050.py @@ -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: