summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-01 01:54:54 +0100
committermathieui <mathieui@mathieui.net>2013-03-01 01:54:54 +0100
commit6afc1f915c7b736920ae97c6be4046e356c1bc28 (patch)
tree5d9968d3c0df75ad66c99903e665795ddd896cb3 /src
parent074d8dadfe4b3cb0ae4e5fa7017bf274c3348270 (diff)
downloadpoezio-6afc1f915c7b736920ae97c6be4046e356c1bc28.tar.gz
poezio-6afc1f915c7b736920ae97c6be4046e356c1bc28.tar.bz2
poezio-6afc1f915c7b736920ae97c6be4046e356c1bc28.tar.xz
poezio-6afc1f915c7b736920ae97c6be4046e356c1bc28.zip
Fix #2226 (TB on /activity)
Diffstat (limited to 'src')
-rw-r--r--src/core.py2
1 files changed, 2 insertions, 0 deletions
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):