diff --git a/oyoyo/client.py b/oyoyo/client.py index c20a7f0..a25b735 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -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): diff --git a/wolfbot.py b/wolfbot.py index 55aa4f9..1237f51 100644 --- a/wolfbot.py +++ b/wolfbot.py @@ -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 diff --git a/wolfgame.py b/wolfgame.py index 6156594..b393cc9 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -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: