From a8c49dd0659c32073437d7de6220a2f4ec2aad5e Mon Sep 17 00:00:00 2001 From: jcao219 Date: Wed, 27 Jul 2011 17:03:34 -0500 Subject: [PATCH] made debug mode, !chankick better --- wolfgame.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 07cc670..e6aac9d 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -333,7 +333,7 @@ def fjoin(cli, nick, chan, rest): continue ull = [u.lower() for u in var.USERS] 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 cli.msg(chan, nick+(": You may only fjoin "+ "people who are in this channel.")) @@ -379,7 +379,10 @@ def chankick(cli, nick, chan, rest): cli.notice(nick, "Invalid syntax for this command.") return 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: cli.kick(chan, nick, "No.")