Throttle channel joins
This commit is contained in:
4
irc.py
4
irc.py
@@ -46,7 +46,7 @@ class Bot(asynchat.async_chat):
|
||||
# asynchat.async_chat.push(self, *args, **kargs)
|
||||
|
||||
def __write(self, args, text=None):
|
||||
# print '%r %r %r' % (self, args, text)
|
||||
# print 'PUSH: %r %r %r' % (self, args, text)
|
||||
try:
|
||||
if text is not None:
|
||||
# 510 because CR and LF count too, as nyuszika7h points out
|
||||
@@ -102,7 +102,7 @@ class Bot(asynchat.async_chat):
|
||||
line = line[:-1]
|
||||
self.buffer = ''
|
||||
|
||||
# print line
|
||||
# print 'GOT:', repr(line)
|
||||
if line.startswith(':'):
|
||||
source, line = line[1:].split(' ', 1)
|
||||
else: source = None
|
||||
|
||||
Reference in New Issue
Block a user