it can be used to spam IRC channels while masking the source address.
You will need to have Jason Coombs's irc library where Python can see
-it. See <http://pypi.python.org/pypi/irc/>; use version 3.2 or later,
+it. See <http://pypi.python.org/pypi/irc/>; use version 3.2.2 or later,
not 3.0 or the even older code from SourceForge.
The file org.catb.irkerd.plist is a Mac OS/X plist that can be
resource page at <http://www.catb.org/~esr/irker/>.
Requires Python 2.6 or 2.5 with the simplejson library installed, and
-the irc client library at version >= 3.2: see
+the irc client library at version >= 3.2.2: see
http://pypi.python.org/pypi/irc/
"""
self.irc.add_global_handler("featurelist", self._handle_features)
self.irc.add_global_handler("disconnect", self._handle_disconnect)
self.irc.add_global_handler("kick", self._handle_kick)
- thread = threading.Thread(target=self.process_forever)
+ thread = threading.Thread(target=self.irc.process_forever)
thread.setDaemon(True)
self.irc._thread = thread
thread.start()
"Debugging information."
if self.debuglevel >= level:
sys.stderr.write("irkerd: %s\n" % errmsg)
- def process_forever(self, timeout=0.2):
- "Shim - can be removed later."
- # Kluge to get around the fact that 3.2 and older library
- # versions do a Unicode decode where they shouldn't.
- self.debug(1, "process_forever(timeout=%s)" % timeout)
- while True:
- try:
- self.irc.process_once(timeout)
- except UnicodeDecodeError:
- pass
def _handle_ping(self, connection, _event):
"PING arrived, bump the last-received time for the connection."
if connection.context: