mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
fixed manual address definition
This commit is contained in:
parent
cd7cd30b4c
commit
fb78bf0996
2 changed files with 3 additions and 2 deletions
|
@ -143,7 +143,7 @@ if __name__ == '__main__':
|
|||
format='%(levelname)-8s %(message)s')
|
||||
|
||||
if opts.jid is None:
|
||||
opts.jid = input("Username: ")
|
||||
opts.jid = raw_input("Username: ")
|
||||
if opts.password is None:
|
||||
opts.password = getpass.getpass("Password: ")
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ class ClientXMPP(BaseXMPP):
|
|||
connection. Defaults to True.
|
||||
"""
|
||||
self.session_started_event.clear()
|
||||
if not address:
|
||||
address = (self.boundjid.host, 5222)
|
||||
|
||||
return XMLStream.connect(self, address[0], address[1],
|
||||
|
|
Loading…
Reference in a new issue