From 5f4b528e6bdc238988b02b9a7d4ef55077773e76 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 11 Mar 2012 16:13:19 -0700 Subject: Ensure that result stanzas are returned, as expected. --- sleekxmpp/plugins/xep_0108/user_activity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0108') diff --git a/sleekxmpp/plugins/xep_0108/user_activity.py b/sleekxmpp/plugins/xep_0108/user_activity.py index 7f5f0ace..3e400af2 100644 --- a/sleekxmpp/plugins/xep_0108/user_activity.py +++ b/sleekxmpp/plugins/xep_0108/user_activity.py @@ -63,7 +63,7 @@ class xep_0108(base_plugin): activity = UserActivity() activity['value'] = (general, specific) activity['text'] = text - self.xmpp['xep_0163'].publish(activity, + return self.xmpp['xep_0163'].publish(activity, node=UserActivity.namespace, options=options, ifrom=ifrom, @@ -86,7 +86,7 @@ class xep_0108(base_plugin): be executed when a reply stanza is received. """ activity = UserActivity() - self.xmpp['xep_0163'].publish(activity, + return self.xmpp['xep_0163'].publish(activity, node=UserActivity.namespace, ifrom=ifrom, block=block, -- cgit v1.2.3