Browse Source

made debug mode, !chankick better

master
jcao219 14 years ago
parent
commit
a8c49dd065
  1. 7
      wolfgame.py

7
wolfgame.py

@ -333,7 +333,7 @@ def fjoin(cli, nick, chan, rest):
continue continue
ull = [u.lower() for u in var.USERS] ull = [u.lower() for u in var.USERS]
if a.lower() not in ull: if a.lower() not in ull:
if not is_fake_nick(a) and botconfig.DEBUG_MODE: if not is_fake_nick(a) or not botconfig.DEBUG_MODE:
if not noticed: # important if not noticed: # important
cli.msg(chan, nick+(": You may only fjoin "+ cli.msg(chan, nick+(": You may only fjoin "+
"people who are in this channel.")) "people who are in this channel."))
@ -379,7 +379,10 @@ def chankick(cli, nick, chan, rest):
cli.notice(nick, "Invalid syntax for this command.") cli.notice(nick, "Invalid syntax for this command.")
return return
if rest[0] != botconfig.NICK: if rest[0] != botconfig.NICK:
cli.kick(chan, *rest) if len(rest) == 1:
cli.kick(chan, rest[0], "Kicked by "+nick+".")
else:
cli.kick(chan, rest[0], "Kicked by {0}: {1}".format(nick, rest[1]))
else: else:
cli.kick(chan, nick, "No.") cli.kick(chan, nick, "No.")

Loading…
Cancel
Save