Add BoB data to message and presence stanzas.

This commit is contained in:
Lance Stout 2013-01-20 18:44:17 -08:00
parent 93b8e66b5d
commit 1f9286d39e

View File

@ -10,7 +10,7 @@
import logging import logging
import hashlib import hashlib
from sleekxmpp.stanza import Iq from sleekxmpp.stanza import Iq, Message, Presence
from sleekxmpp.exceptions import XMPPError from sleekxmpp.exceptions import XMPPError
from sleekxmpp.xmlstream.handler import Callback from sleekxmpp.xmlstream.handler import Callback
from sleekxmpp.xmlstream.matcher import StanzaPath from sleekxmpp.xmlstream.matcher import StanzaPath
@ -36,6 +36,8 @@ class XEP_0231(BasePlugin):
self._cids = {} self._cids = {}
register_stanza_plugin(Iq, BitsOfBinary) register_stanza_plugin(Iq, BitsOfBinary)
register_stanza_plugin(Message, BitsOfBinary)
register_stanza_plugin(Presence, BitsOfBinary)
self.xmpp.register_handler( self.xmpp.register_handler(
Callback('Bits of Binary - Iq', Callback('Bits of Binary - Iq',