This commit is contained in:
Stephen Dranger 2011-02-18 16:17:25 -06:00
parent 7e2cd62752
commit 6899ab97e8
4 changed files with 4 additions and 0 deletions

BIN
irc.pyc

Binary file not shown.

BIN
memos.pyc

Binary file not shown.

View file

@ -156,6 +156,7 @@ class IRCClient:
self.socket.setblocking(0)
#if self.timeout:
# self.socket.settimeout(self.timeout)
self.socket.settimeout(10)
helpers.nick(self, self.nick)
helpers.user(self, self.nick, self.real_name)
@ -166,6 +167,9 @@ class IRCClient:
while not self._end:
try:
buffer += self.socket.recv(1024)
except socket.timeout, e:
yield True
continue
except socket.error, e:
try: # a little dance of compatibility to get the errno
errno = e.errno

Binary file not shown.