From 37851df6e9895318a092c09b04122625ea6ad341 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 15 Oct 2007 20:16:57 +0000 Subject: [PATCH] prevent file rename when new nick is the same as old nick. --- src/groupchat_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 7895df047..730389b65 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1006,7 +1006,7 @@ class GroupchatControl(ChatControlBase): files[os.path.join(path, puny_nick + ext)] = \ os.path.join(path, puny_new_nick + ext) for old_file in files: - if os.path.exists(old_file): + if os.path.exists(old_file) and old_file != files[old_file]: if os.path.exists(files[old_file]): # Windows require this os.remove(files[old_file])