Skip to content
Snippets Groups Projects
Commit 6facbfa5 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback. Fixes #5978

parent a6cb79b6
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,8 @@ class SnarlNotificationsPlugin(GajimPlugin):
nickname = gajim.get_contact_name_from_jid(account, jid_without_resource)
elif msg_type in ('pm', 'groupchat'):
nickname = gajim.get_resource_from_jid(jid)
else:
nickname = jid
print "Event '%s' occured. Arguments: %s\n\n===\n"%(event_name, pformat(args))
print "Event '%s' occured. Arguments: \naccount = %s\njid = %s\nmsg = %s\nnickname = %s"%(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment