From e68b07dbce6b03ef99a19886a9b53808e5a04289 Mon Sep 17 00:00:00 2001 From: Florian Fieber Date: Thu, 23 Aug 2012 03:55:17 +0200 Subject: Fix get_blocked() in XEP-0191 --- sleekxmpp/plugins/xep_0191/blocking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/plugins') diff --git a/sleekxmpp/plugins/xep_0191/blocking.py b/sleekxmpp/plugins/xep_0191/blocking.py index 4a87479a..57632319 100644 --- a/sleekxmpp/plugins/xep_0191/blocking.py +++ b/sleekxmpp/plugins/xep_0191/blocking.py @@ -48,7 +48,7 @@ class XEP_0191(BasePlugin): def get_blocked(self, ifrom=None, block=True, timeout=None, callback=None): iq = self.xmpp.Iq() iq['type'] = 'get' - iq['from'] = 'ifrom' + iq['from'] = ifrom iq.enable('blocklist') return iq.send(block=block, timeout=timeout, callback=callback) -- cgit v1.2.3 From c7ec6a72cda41c7dbbdd4193d795b5dd8df4843f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 24 Aug 2012 11:47:21 -0700 Subject: Add catch-all chatstate event. --- sleekxmpp/plugins/xep_0085/chat_states.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/plugins') diff --git a/sleekxmpp/plugins/xep_0085/chat_states.py b/sleekxmpp/plugins/xep_0085/chat_states.py index 17e19d35..17f82afd 100644 --- a/sleekxmpp/plugins/xep_0085/chat_states.py +++ b/sleekxmpp/plugins/xep_0085/chat_states.py @@ -52,4 +52,5 @@ class XEP_0085(BasePlugin): def _handle_chat_state(self, msg): state = msg['chat_state'] log.debug("Chat State: %s, %s", state, msg['from'].jid) + self.xmpp.event('chatstate', msg) self.xmpp.event('chatstate_%s' % state, msg) -- cgit v1.2.3