summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-07-16 17:22:39 +1200
committerFlorian Baumann <derflob@derflob.de>2016-07-16 17:22:39 +1200
commitde3ebaa36d5be2ea2942014603786cbc76d657e7 (patch)
tree292e609b56b4811d5a91ef841a4e0ab5367bd8f9
parent0bd6fa9fa02a24e353fa84b90d718a8d2c8cfe09 (diff)
downloadxmpp-de3ebaa36d5be2ea2942014603786cbc76d657e7.tar.gz
xmpp-de3ebaa36d5be2ea2942014603786cbc76d657e7.tar.bz2
properly check if it's a xmpp cmd
-rw-r--r--__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
index a099500..283c62b 100644
--- a/__init__.py
+++ b/__init__.py
@@ -353,7 +353,7 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
if (len(cmd) == 0 or cmd[0] == 'all'):
lines.append("Available commands:")
for (attr, fn) in self.__dict__.items():
- if (attr.startswith('_cmd_'), hasattr(fn, 'xmpp_name') and not fn.hidden):
+ if (attr.startswith('_cmd_') and hasattr(fn, 'xmpp_name') and not fn.hidden):
lines.append("{} - {}".format(fn.xmpp_name, fn.desc))
else:
fn = getattr(self, "_cmd_{}".format(cmd[0]), None)