plugin XEP-0045: Fix use of empty string for nicks:
If empty string is used for nick in `join` (e.g., due to a bridge call), take use part of the JID. This fix the use of empty resource, which was resulting in rejection by the server.
This commit is contained in:
parent
25a491d7f0
commit
e5781641f3
1 changed files with 1 additions and 1 deletions
|
|
@ -907,7 +907,7 @@ class XEP_0045:
|
|||
@return: The joined room.
|
||||
@raise AlreadyJoined: The room is already joined by this profile.
|
||||
"""
|
||||
if nick is None:
|
||||
if not nick:
|
||||
nick = client.jid.user
|
||||
if options is None:
|
||||
options = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue