mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Updated method names.
Using underscored names where possible.
This commit is contained in:
parent
f234dc02cf
commit
799645f13f
1 changed files with 6 additions and 6 deletions
|
@ -93,27 +93,27 @@ class ClientXMPP(BaseXMPP):
|
||||||
self.bound = False
|
self.bound = False
|
||||||
self.bindfail = False
|
self.bindfail = False
|
||||||
|
|
||||||
self.registerHandler(
|
self.register_handler(
|
||||||
Callback('Stream Features',
|
Callback('Stream Features',
|
||||||
MatchXPath('{%s}features' % self.stream_ns),
|
MatchXPath('{%s}features' % self.stream_ns),
|
||||||
self._handle_stream_features))
|
self._handle_stream_features))
|
||||||
self.registerHandler(
|
self.register_handler(
|
||||||
Callback('Roster Update',
|
Callback('Roster Update',
|
||||||
MatchXPath('{%s}iq/{%s}query' % (
|
MatchXPath('{%s}iq/{%s}query' % (
|
||||||
self.default_ns,
|
self.default_ns,
|
||||||
'jabber:iq:roster')),
|
'jabber:iq:roster')),
|
||||||
self._handle_roster))
|
self._handle_roster))
|
||||||
|
|
||||||
self.registerFeature(
|
self.register_feature(
|
||||||
"<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls' />",
|
"<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls' />",
|
||||||
self._handle_starttls, True)
|
self._handle_starttls, True)
|
||||||
self.registerFeature(
|
self.register_feature(
|
||||||
"<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />",
|
"<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl' />",
|
||||||
self._handle_sasl_auth, True)
|
self._handle_sasl_auth, True)
|
||||||
self.registerFeature(
|
self.register_feature(
|
||||||
"<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind' />",
|
"<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind' />",
|
||||||
self._handle_bind_resource)
|
self._handle_bind_resource)
|
||||||
self.registerFeature(
|
self.register_feature(
|
||||||
"<session xmlns='urn:ietf:params:xml:ns:xmpp-session' />",
|
"<session xmlns='urn:ietf:params:xml:ns:xmpp-session' />",
|
||||||
self._handle_start_session)
|
self._handle_start_session)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue