changeset 223:3da85bf56bdf

(irclib) minor fix, only show the irc_id once in the debug log Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 15:55:43 +0100
parents 1439d3274e6a
children 8e6a0b60eed1
files irclib.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -769,9 +769,10 @@ class ServerConnection(Connection):
                         command = "umode"
 
                 if command == "join":
-                    self.irc_id = prefix
-                    if DEBUG:
-                        print "irc_id: %s" % (prefix)
+                    if self.irc_id != prefix:
+                        self.irc_id = prefix
+                        if DEBUG:
+                            print "irc_id: %s" % (prefix)
 
                 if DEBUG:
                     print "command: %s, source: %s, target: %s, arguments: %s" % (