|
|
@ -190,7 +190,7 @@ class IRCClient(object): |
|
|
|
try: |
|
|
|
try: |
|
|
|
buffer += self.socket.recv(1024) |
|
|
|
buffer += self.socket.recv(1024) |
|
|
|
except socket.error as e: |
|
|
|
except socket.error as e: |
|
|
|
if not self.blocking and e.errno == 11: |
|
|
|
if False and not self.blocking and e.errno == 11: |
|
|
|
pass |
|
|
|
pass |
|
|
|
else: |
|
|
|
else: |
|
|
|
raise e |
|
|
|
raise e |
|
|
@ -228,6 +228,7 @@ class IRCClient(object): |
|
|
|
if self.socket: |
|
|
|
if self.socket: |
|
|
|
logging.info('closing socket') |
|
|
|
logging.info('closing socket') |
|
|
|
self.socket.close() |
|
|
|
self.socket.close() |
|
|
|
|
|
|
|
raise SystemExit |
|
|
|
def msg(self, user, msg): |
|
|
|
def msg(self, user, msg): |
|
|
|
for line in msg.split('\n'): |
|
|
|
for line in msg.split('\n'): |
|
|
|
maxchars = 494 - len(self.nickname+self.ident+self.hostmask+user) |
|
|
|
maxchars = 494 - len(self.nickname+self.ident+self.hostmask+user) |
|
|
|