Commits

Anonymous committed 0e98325

Corrected problems spotted by Markku Hänninen <hmm@iki.fi>:

* irccat2 (IRCCat.on_welcome): Added missing connection argument.
(IRCCat.on_join): Likewise.
(IRCCat.on_disconnect): Likewise.

* irclib.py (ServerConnection.ison): Bug fix: Join nicks by space
instead of commas.

* irclib.py (ServerConnection.whowas): Bug fix: Let the max
argument default to the empty string.

* irclib.py (numeric_events): Added new events: traceservice,
tracereconnect, tryagain, invitelist, endofinvitelist, exceptlist,
endofexceptlist, unavailresource, nochanmodes, banlistfull,
restricted and uniqopprivsneeded.

  • Participants
  • Parent commits 97e9cbe

Comments (0)

Files changed (3)

+2002-03-01  Joel Rosdahl  <joel@lysator.liu.se>
+
+	Corrected problems spotted by Markku Hänninen <hmm@iki.fi>:
+
+	* irccat2 (IRCCat.on_welcome): Added missing connection argument.
+	(IRCCat.on_join): Likewise.
+	(IRCCat.on_disconnect): Likewise.
+
+	* irclib.py (ServerConnection.ison): Bug fix: Join nicks by space
+	instead of commas.
+
+	* irclib.py (ServerConnection.whowas): Bug fix: Let the max
+	argument default to the empty string.
+
+	* irclib.py (numeric_events): Added new events: traceservice,
+	tracereconnect, tryagain, invitelist, endofinvitelist, exceptlist,
+	endofexceptlist, unavailresource, nochanmodes, banlistfull,
+	restricted and uniqopprivsneeded.
+
 2002-02-17  Joel Rosdahl  <joel@rosdahl.net>
 
 	* Released version 0.3.3.
         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):
 
             nicks -- List of nicks.
         """
-        self.send_raw("ISON " + string.join(nicks, ","))
+        self.send_raw("ISON " + string.join(nicks, " "))
 
     def join(self, channel, key=""):
         """Send a JOIN command."""
         """Send a WHOIS command."""
         self.send_raw("WHOIS " + string.join(targets, ","))
 
-    def whowas(self, nick, max=None, server=""):
+    def whowas(self, nick, max="", server=""):
         """Send a WHOWAS command."""
         self.send_raw("WHOWAS %s%s%s" % (nick,
                                          max and (" " + max),
     "204": "traceoperator",
     "205": "traceuser",
     "206": "traceserver",
+    "207": "traceservice",
     "208": "tracenewtype",
     "209": "traceclass",
+    "210": "tracereconnect",
     "211": "statslinkinfo",
     "212": "statscommands",
     "213": "statscline",
     "259": "adminemail",
     "261": "tracelog",
     "262": "endoftrace",
+    "263": "tryagain",
     "265": "n_local",
     "266": "n_global",
     "300": "none",
     "333": "topicinfo",
     "341": "inviting",
     "342": "summoning",
+    "346": "invitelist",
+    "347": "endofinvitelist",
+    "348": "exceptlist",
+    "349": "endofexceptlist",
     "351": "version",
     "352": "whoreply",
     "353": "namreply",
     "432": "erroneusnickname", # Thiss iz how its speld in thee RFC.
     "433": "nicknameinuse",
     "436": "nickcollision",
+    "437": "unavailresource",  # "Nick temporally unavailable"
     "441": "usernotinchannel",
     "442": "notonchannel",
     "443": "useronchannel",
     "474": "bannedfromchan",
     "475": "badchannelkey",
     "476": "badchanmask",
+    "477": "nochanmodes",  # "Channel doesn't support modes"
+    "478": "banlistfull",
     "481": "noprivileges",
     "482": "chanoprivsneeded",
     "483": "cantkillserver",
+    "484": "restricted",   # Connection is restricted
+    "485": "uniqopprivsneeded",
     "491": "nooperhost",
     "492": "noservicehost",
     "501": "umodeunknownflag",