Commit 55e4ec4f authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix nickname parsing

parent 3959f580
......@@ -53,7 +53,7 @@ class Nickname:
def _parse_nickname(stanza):
nickname = stanza.getTagData('nick', namespace=NS_NICK)
if not nickname:
nickname = stanza.getTag('nick', namespace=NS_NICK)
if nickname is None:
return nickname
return nickname.getData() or None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment