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.

Revisions

  1. @invalid-email-address Anonymous created this gist Mar 18, 2011.
    5 changes: 5 additions & 0 deletions Create custom stream event handlers in XMPP
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    self.registerHandler(Callback('UserRegister',
    MatchXPath('{%s}iq/{%s}user' % (self.default_ns, User.namespace)),
    self._handle_user_register
    )
    )