ComponentXMPP: fix fix_error_ns option
self.default_ns is defined in BaseXMPP.__init__(), so ComponentXMPP._fix_error_ns() has to be called later
This commit is contained in:
parent
6d6fdc6419
commit
f3522eb84b
@ -61,9 +61,9 @@ class ComponentXMPP(BaseXMPP):
|
|||||||
default_ns = 'jabber:client'
|
default_ns = 'jabber:client'
|
||||||
else:
|
else:
|
||||||
default_ns = 'jabber:component:accept'
|
default_ns = 'jabber:component:accept'
|
||||||
|
BaseXMPP.__init__(self, jid, default_ns)
|
||||||
if fix_error_ns:
|
if fix_error_ns:
|
||||||
self._fix_error_ns()
|
self._fix_error_ns()
|
||||||
BaseXMPP.__init__(self, jid, default_ns)
|
|
||||||
|
|
||||||
self.auto_authorize = None
|
self.auto_authorize = None
|
||||||
self.stream_header = '<stream:stream %s %s to="%s">' % (
|
self.stream_header = '<stream:stream %s %s to="%s">' % (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user