bug fix
This commit is contained in:
parent
6e9747ae39
commit
d87d362d23
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user