From e9db8ef4c8c023b27bfe21a1d162c521b7937557 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 22 Jul 2005 12:47:58 +0000 Subject: [PATCH] fix role things --- src/groupchat_window.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index a22591cb5..25492c9ac 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -1,4 +1,4 @@ -## plugins/groupchat_window.py +## groupchat_window.py ## ## Gajim Team: ## - Yann Le Boulanger @@ -228,13 +228,13 @@ class GroupchatWindow(chat.Chat): image = self.plugin.roster.jabber_state_images[show] resource = '' if role == 'none': - role = _('None') + role_name = _('None') elif role == 'moderator': - role = _('Moderators') + role_name = _('Moderators') elif role == 'participant': - role = _('Participants') + role_name = _('Participants') elif role == 'visitor': - role = _('Visitors') + role_name = _('Visitors') if jid: jids = jid.split('/', 1) @@ -244,10 +244,10 @@ class GroupchatWindow(chat.Chat): else: j = '' role_iter = self.get_role_iter(room_jid, role) - if not role_iter: + if not role_iter: role_iter = model.append(None, (self.plugin.roster.jabber_state_images['closed'], role, - '%s' % role)) + '%s' % role_name)) iter = model.append(role_iter, (image, nick, self.escape(nick))) self.contacts[room_jid][nick] = Contact(jid = j, name = nick, show = show, resource = resource, role = role,