diff irclib.py @ 221:1a82d5d40d90

moved irc_id handling to irclib Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 14:00:21 +0100
parents 63289aa1dea7
children 1439d3274e6a
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -770,6 +770,11 @@ class ServerConnection(Connection):
                     if not is_channel(target):
                         command = "umode"
 
+                if command == "join":
+                    self.irc_id = prefix
+                    if DEBUG:
+                        print "irc_id: %s" % (prefix)
+
                 if DEBUG:
                     print "command: %s, source: %s, target: %s, arguments: %s" % (
                         command, prefix, target, arguments)