diff options
author | Lance Stout <lancestout@gmail.com> | 2013-04-01 20:57:16 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-04-01 20:57:16 -0700 |
commit | 7ac75de19df11ab992bd3d1a60b0154101dce655 (patch) | |
tree | ace762e6e2b85c289b1a11c61af85b1197ffabae /sleekxmpp/xmlstream/xmlstream.py | |
parent | 0a2737dc77709daa0196340368b7ffbfaf71f641 (diff) | |
download | slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.gz slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.bz2 slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.xz slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.zip |
Make XMLMasks match properly for components.
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 1c0b84b9..55074932 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1017,8 +1017,12 @@ class XMLStream(object): if name is None: name = 'add_handler_%s' % self.new_id() - self.register_handler(XMLCallback(name, MatchXMLMask(mask), pointer, - once=disposable, instream=instream)) + self.register_handler( + XMLCallback(name, + MatchXMLMask(mask, self.default_ns), + pointer, + once=disposable, + instream=instream)) def register_handler(self, handler, before=None, after=None): """Add a stream event handler that will be executed when a matching |