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): @@ -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):

2
wolfbot.py

@ -88,7 +88,7 @@ def __unhandled__(cli, prefix, cmd, *args): @@ -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

2
wolfgame.py

@ -2574,7 +2574,7 @@ if botconfig.DEBUG_MODE: @@ -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…
Cancel
Save