diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-10-19 00:05:41 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-10-19 00:05:41 +0400 |
commit | e4ff7c6ced889fd79e3cd9fdc32fa0b31444687c (patch) | |
tree | e9b49ad2cf6667abfee1f941fb22bd071b613c4e /plugins | |
parent | 3dd4a74df1f21d53cc259226ed0ebd319b72f06a (diff) |
use NEC to handle messages / gc_messages
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/snarl_notifications/plugin.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/snarl_notifications/plugin.py b/plugins/snarl_notifications/plugin.py index c01194427..acc41233f 100644 --- a/plugins/snarl_notifications/plugin.py +++ b/plugins/snarl_notifications/plugin.py @@ -65,9 +65,8 @@ class SnarlNotificationsPlugin(GajimPlugin): msg = data[1][1] msg_type = data[1][4] if msg_type == 'chat': - nickname = gajim.get_contact_name_from_jid(account, - jid_without_resource) - elif msg_type == 'pm': + nickname = gajim.get_contact_name_from_jid(account, jid_without_resource) + elif msg_type in ('pm', 'groupchat'): nickname = gajim.get_resource_from_jid(jid) print "Event '%s' occured. Arguments: %s\n\n===\n"%(event_name, pformat(args)) |