# HG changeset patch # User Goffi # Date 1440526847 -7200 # Node ID 987e74cbb8393a593cef64c71cee7a5cafa99dd1 # Parent 74ddb4cc2ff9eb36d5f4193684badc0c9d6f0519 plugin XEP-0050: fixed crash on empty node in addAdHocCommand diff -r 74ddb4cc2ff9 -r 987e74cbb839 src/plugins/plugin_xep_0050.py --- 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: