diff --git a/plugins/kill.py b/plugins/kill.py index c698cc8..a4daedd 100755 --- a/plugins/kill.py +++ b/plugins/kill.py @@ -42,12 +42,11 @@ def kill(inp, me=None, nick=None, input=None, notice=None): return if inp == input.conn.nick.lower() or inp == "itself": - target = random.choice(kills) - target = re.sub ('', nick, target) - kill = re.sub ('', random.choice(body), target) + target = inp else: - target = random.choice(kills) - target = re.sub ('', inp, target) - kill = re.sub ('', random.choice(body), target) + target = nick + kill = random.choice(kills) + kill = re.sub ('', target, target) + kill = re.sub ('', random.choice(body), target) msg = kill me(msg)