Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the "WARNING server property deprecated. Use boundjid.host"

  • Loading branch information...
commit 105e153c259fc2dccf97a014f05bb223cf02ec6b 1 parent 45991e4
@skinkie authored
View
2  sleekxmpp/plugins/xep_0078.py
@@ -36,7 +36,7 @@ def auth(self, xml=None):
log.debug("Starting jabber:iq:auth Authentication")
auth_request = self.xmpp.makeIqGet()
auth_request_query = ET.Element('{jabber:iq:auth}query')
- auth_request.attrib['to'] = self.xmpp.server
+ auth_request.attrib['to'] = self.xmpp.boundjid.host
username = ET.Element('username')
username.text = self.xmpp.username
auth_request_query.append(username)
View
2  sleekxmpp/plugins/xep_0092.py
@@ -26,7 +26,7 @@ def post_init(self):
def report_version(self, xml):
iq = self.xmpp.makeIqResult(xml.get('id', 'unknown'))
- iq.attrib['to'] = xml.get('from', self.xmpp.server)
+ iq.attrib['to'] = xml.get('from', self.xmpp.boundjid.host)
query = ET.Element('{jabber:iq:version}query')
name = ET.Element('name')
name.text = self.name
View
2  sleekxmpp/plugins/xep_0199.py
@@ -33,7 +33,7 @@ def handler_pingserver(self, xml):
def scheduled_ping(self):
log.debug("pinging...")
- if self.sendPing(self.xmpp.server, self.config.get('timeout', 30)) is False:
+ if self.sendPing(self.xmpp.boundjid.host, self.config.get('timeout', 30)) is False:
log.debug("Did not recieve ping back in time. Requesting Reconnect.")
self.xmpp.reconnect()
Please sign in to comment.
Something went wrong with that request. Please try again.