Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-10-19 00:05:41 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-10-19 00:05:41 +0400
commite4ff7c6ced889fd79e3cd9fdc32fa0b31444687c (patch)
treee9b49ad2cf6667abfee1f941fb22bd071b613c4e /plugins
parent3dd4a74df1f21d53cc259226ed0ebd319b72f06a (diff)
use NEC to handle messages / gc_messages
Diffstat (limited to 'plugins')
-rw-r--r--plugins/snarl_notifications/plugin.py5
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))