Commits

Anonymous committed 5913d1c

Version 0.3.1.

Comments (0)

Files changed (3)

+2000-12-11  Joel Rosdahl  <joel@rosdahl.net>
+
+	* Released version 0.3.1.
+
+	* irclib.py (IRC.process_once): Work-around for platform-dependent
+	select() on Windows systems.
+
+	* ircbot.py: Clarification of SingleServerIRCBot doc string.
+
 2000-11-26  Joel Rosdahl  <joel@rosdahl.net>
 
 	* Released version 0.3.0.
 
     The bot keeps track of the channels it has joined, the other
     clients that are present in the channels and which of those that
-    have operator or voice modes.
+    have operator or voice modes.  The "database" is kept in the
+    self.channels attribute, which is an IRCDict of Channels.
     """
     def __init__(self, server_list, nickname, realname, reconnection_interval=60):
         """Constructor for SingleServerIRCBot objects.
 import time
 import types
 
-VERSION = 0, 3, 0
+VERSION = 0, 3, 1
 DEBUG = 0
 
 # TODO
         """
         sockets = map(lambda x: x._get_socket(), self.connections)
         sockets = filter(lambda x: x != None, sockets)
-        (i, o, e) = select.select(sockets, [], [], timeout)
-        self.process_data(i)
+        if sockets:
+            (i, o, e) = select.select(sockets, [], [], timeout)
+            self.process_data(i)
+        else:
+            time.sleep(timeout)
         self.process_timeout()
 
     def process_forever(self, timeout=0.2):