bookmark nick: Treat empty string as no nick
And prevent the JID() call from failing with InvalidJid because of the empty resource. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
2efdbf0490
commit
f4185b7485
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class CommandCore:
|
||||||
|
|
||||||
# Validate / Normalize
|
# Validate / Normalize
|
||||||
try:
|
try:
|
||||||
if nick is None:
|
if not nick:
|
||||||
jid = JID(room)
|
jid = JID(room)
|
||||||
else:
|
else:
|
||||||
jid = JID('{}/{}'.format(room, nick))
|
jid = JID('{}/{}'.format(room, nick))
|
||||||
|
|
Loading…
Reference in a new issue