This commit is contained in:
Jimmy Cao 2011-08-18 15:25:25 -05:00
parent 6e9747ae39
commit d87d362d23
3 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ class IRCClient(object):
logging.info('---> send "{0}"'.format(msg))
while not self.tokenbucket.consume(1):
pass
time.sleep(0.3)
self.socket.send(msg + bytes("\r\n", "utf_8"))
def connect(self):

View File

@ -88,7 +88,7 @@ def __unhandled__(cli, prefix, cmd, *args):
raise e
else:
logging.error(traceback.format_exc())
cli.msg(botconfig.CHANNEL, "An error has occured and has been logged.")
cli.msg(botconfig.CHANNEL, "An error has occurred and has been logged.")
else:
logging.debug('Unhandled command {0}({1})'.format(cmd, [arg.decode('utf_8')
for arg in args

View File

@ -2574,7 +2574,7 @@ if botconfig.DEBUG_MODE:
if not is_fake_nick(who):
ul = list(var.USERS.keys())
ull = [u.lower() for u in ul]
if who.lower() not in pll:
if who.lower() not in ull:
cli.msg(chan, "This can only be done on fake nicks.")
return
else: