From 6afc1f915c7b736920ae97c6be4046e356c1bc28 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 1 Mar 2013 01:54:54 +0100 Subject: Fix #2226 (TB on /activity) --- src/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.py b/src/core.py index 05814f19..d7afd773 100644 --- a/src/core.py +++ b/src/core.py @@ -2148,6 +2148,8 @@ class Core(object): (' and his/her last status was %s' % status) if status else '',) self.information(msg, 'Info') jid = safeJID(arg) + if jid == '': + return self.command_help('activity') self.xmpp.plugin['xep_0012'].get_last_activity(jid, block=False, callback=callback) def completion_activity(self, the_input): -- cgit v1.2.3