Skip to content

Instantly share code, notes, and snippets.

@legastero
Created May 21, 2010 05:54
Show Gist options
  • Save legastero/408518 to your computer and use it in GitHub Desktop.
Save legastero/408518 to your computer and use it in GitHub Desktop.
def plugin_init(self):
self.description = "In-Band Registration"
self.xep = "0077"
self.xmpp.registerHandler(
Callback('In-Band Registration',
MatchXPath('{%s}iq/{jabber:iq:register}query' % self.xmpp.default_ns),
self.__handleRegistration))
self.xmpp.stanzaPlugin(Iq, Registration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment