Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lammoth/875955 to your computer and use it in GitHub Desktop.
Save lammoth/875955 to your computer and use it in GitHub Desktop.
Create custom stream event handlers in XMPP with SleekXMPP
self.registerHandler(Callback('UserRegister',
MatchXPath('{%s}iq/{%s}user' % (self.default_ns, User.namespace)),
self._handle_user_register
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment