fix role things
This commit is contained in:
		
							parent
							
								
									ef3b60a586
								
							
						
					
					
						commit
						e9db8ef4c8
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		|  | @ -1,4 +1,4 @@ | ||||||
| ## plugins/groupchat_window.py | ## groupchat_window.py | ||||||
| ## | ## | ||||||
| ## Gajim Team: | ## Gajim Team: | ||||||
| ## - Yann Le Boulanger <asterix@lagaule.org> | ## - Yann Le Boulanger <asterix@lagaule.org> | ||||||
|  | @ -228,13 +228,13 @@ class GroupchatWindow(chat.Chat): | ||||||
| 		image = self.plugin.roster.jabber_state_images[show] | 		image = self.plugin.roster.jabber_state_images[show] | ||||||
| 		resource = '' | 		resource = '' | ||||||
| 		if role == 'none': | 		if role == 'none': | ||||||
| 			role = _('None') | 			role_name = _('None') | ||||||
| 		elif role == 'moderator': | 		elif role == 'moderator': | ||||||
| 			role = _('Moderators') | 			role_name = _('Moderators') | ||||||
| 		elif role == 'participant': | 		elif role == 'participant': | ||||||
| 			role = _('Participants') | 			role_name = _('Participants') | ||||||
| 		elif role == 'visitor': | 		elif role == 'visitor': | ||||||
| 			role = _('Visitors') | 			role_name = _('Visitors') | ||||||
| 
 | 
 | ||||||
| 		if jid: | 		if jid: | ||||||
| 			jids = jid.split('/', 1) | 			jids = jid.split('/', 1) | ||||||
|  | @ -247,7 +247,7 @@ class GroupchatWindow(chat.Chat): | ||||||
| 		if not role_iter: | 		if not role_iter: | ||||||
| 			role_iter = model.append(None, | 			role_iter = model.append(None, | ||||||
| 				(self.plugin.roster.jabber_state_images['closed'], role, | 				(self.plugin.roster.jabber_state_images['closed'], role, | ||||||
| 				'<b>%s</b>' % role)) | 				'<b>%s</b>' % role_name)) | ||||||
| 		iter = model.append(role_iter, (image, nick, self.escape(nick))) | 		iter = model.append(role_iter, (image, nick, self.escape(nick))) | ||||||
| 		self.contacts[room_jid][nick] = Contact(jid = j, name = nick, | 		self.contacts[room_jid][nick] = Contact(jid = j, name = nick, | ||||||
| 			show = show, resource = resource, role = role, | 			show = show, resource = resource, role = role, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue