Source

irc / irccat2

Diff from to
         irclib.SimpleIRCClient.__init__(self)
         self.target = target
 
-    def on_welcome(self, event):
+    def on_welcome(self, connection, event):
         if irclib.is_channel(self.target):
             connection.join(self.target)
         else:
             self.send_it()
 
-    def on_join(self, event):
+    def on_join(self, connection, event):
         self.send_it()
 
-    def on_disconnect(self, event):
+    def on_disconnect(self, connection, event):
         sys.exit(0)
 
     def send_it(self):