From 45ead83fad30ffdf8731a2a90b841f185be3aaa6 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Fri, 22 Jul 2005 14:10:03 +0000 Subject: [PATCH] disallow renaming groups from or to _('not in the roster') --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 19df36d91..4ac04cad0 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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]