Merge pull request #197 from FlorianFieber/develop

Fix get_blocked() in XEP-0191
This commit is contained in:
Lance Stout 2012-08-23 11:04:30 -07:00
commit e20610ab80

View file

@ -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)