changeset 86374d2c4cc8 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=86374d2c4cc8
description: don't use same var for different things in the same function! 
Fixes #5235

diffstat:

 src/groupchat_control.py |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 1e79c3861f98 -r 86374d2c4cc8 src/groupchat_control.py
--- a/src/groupchat_control.py  Tue Sep 29 13:51:20 2009 +0200
+++ b/src/groupchat_control.py  Tue Sep 29 14:52:25 2009 +0200
@@ -1229,15 +1229,15 @@
                                                # Stop all E2E sessions
                                                nick_list = 
gajim.contacts.get_nick_list(self.account,
                                                        self.room_jid)
-                                               for nick in nick_list:
-                                                       fjid = self.room_jid + 
'/' + nick
-                                                       ctrl = 
gajim.interface.msg_win_mgr.get_control(fjid,
+                                               for nick_ in nick_list:
+                                                       fjid_ = self.room_jid + 
'/' + nick_
+                                                       ctrl = 
gajim.interface.msg_win_mgr.get_control(fjid_,
                                                                self.account)
                                                        if ctrl and 
ctrl.session and \
                                                        
ctrl.session.enable_encryption:
                                                                thread_id = 
ctrl.session.thread_id
                                                                
ctrl.session.terminate_e2e()
-                                                               
gajim.connections[self.account].delete_session(fjid,
+                                                               
gajim.connections[self.account].delete_session(fjid_,
                                                                        
thread_id)
                                                                
ctrl.no_autonegotiation = False
                                        else:
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to