parent
ef6425b4e9
commit
b82b99f266
1 changed files with 14 additions and 0 deletions
14
plugins/iq_show.py
Normal file
14
plugins/iq_show.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
from plugin import BasePlugin
|
||||||
|
from sleekxmpp.xmlstream.matcher import StanzaPath
|
||||||
|
from sleekxmpp.xmlstream.handler import Callback
|
||||||
|
|
||||||
|
class Plugin(BasePlugin):
|
||||||
|
def init(self):
|
||||||
|
self.core.xmpp.register_handler(Callback('Iq_show', StanzaPath('iq'), self.handle_iq))
|
||||||
|
|
||||||
|
def handle_iq(self, iq):
|
||||||
|
self.core.information('%s' % iq, 'Iq')
|
||||||
|
|
||||||
|
def cleanup(self):
|
||||||
|
self.core.xmpp.remove_handler('Iq_show')
|
||||||
|
del self.handle_iq
|
Loading…
Reference in a new issue