Browse Source

bug fix

master
jcao219 14 years ago
parent
commit
1e3320b2b9
  1. 2
      oyoyo/client.py
  2. 2
      wolfbot.py
  3. 2
      wolfgame.py

2
oyoyo/client.py

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

2
wolfbot.py

@ -88,7 +88,7 @@ def __unhandled__(cli, prefix, cmd, *args):
raise e raise e
else: else:
logging.error(traceback.format_exc()) 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: else:
logging.debug('Unhandled command {0}({1})'.format(cmd, [arg.decode('utf_8') logging.debug('Unhandled command {0}({1})'.format(cmd, [arg.decode('utf_8')
for arg in args for arg in args

2
wolfgame.py

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

Loading…
Cancel
Save