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
06dbefebb7
commit
7eb99bb436
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class CommandCore:
|
|||
|
||||
# Validate / Normalize
|
||||
try:
|
||||
if nick is None:
|
||||
if not nick:
|
||||
jid = JID(room)
|
||||
else:
|
||||
jid = JID('{}/{}'.format(room, nick))
|
||||
|
|
Loading…
Reference in a new issue