mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Minor changes.
This commit is contained in:
parent
8c9811ea05
commit
c849eda6ce
@ -87,14 +87,12 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
|||||||
|
|
||||||
def writable(self):
|
def writable(self):
|
||||||
#debug.methodNamePrintf(self, 'writable')
|
#debug.methodNamePrintf(self, 'writable')
|
||||||
while self.connected and self.irc:
|
while self.connected:
|
||||||
m = self.irc.takeMsg()
|
m = self.irc.takeMsg()
|
||||||
if m:
|
if m:
|
||||||
self.push(str(m))
|
self.push(str(m))
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
#ret = asynchat.async_chat.writable(self)
|
|
||||||
#debug.printf(str(ret))
|
|
||||||
return asynchat.async_chat.writable(self)
|
return asynchat.async_chat.writable(self)
|
||||||
|
|
||||||
def handle_error(self):
|
def handle_error(self):
|
||||||
@ -121,10 +119,6 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
|||||||
'Uncaught Irc object exception: %s' % debug.exnToString(e)))
|
'Uncaught Irc object exception: %s' % debug.exnToString(e)))
|
||||||
self.buffer = ''
|
self.buffer = ''
|
||||||
|
|
||||||
def handle_connect(self):
|
|
||||||
#debug.methodNamePrintf(self, 'handle_connect')
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handle_close(self):
|
def handle_close(self):
|
||||||
#debug.methodNamePrintf(self, 'handle_close')
|
#debug.methodNamePrintf(self, 'handle_close')
|
||||||
self.scheduleReconnect()
|
self.scheduleReconnect()
|
||||||
|
Loading…
Reference in New Issue
Block a user