disallow renaming groups from or to

_('not in the roster')
This commit is contained in:
Dimitur Kirov 2005-07-22 14:10:03 +00:00
parent bdf5342824
commit 45ead83fad
1 changed files with 3 additions and 0 deletions

View File

@ -1660,6 +1660,9 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
self.draw_contact(jid, account)
elif type == 'group':
old_name = model.get_value(iter, 1)
# Groups maynot change name from or to 'not in the roster'
if _('not in the roster') in [new_text, old_name]:
return
#get all users in that group
for jid in gajim.contacts[account]:
user = gajim.contacts[account][jid][0]