realized I was repeating lines, fixed that

This commit is contained in:
neersighted 2012-03-05 20:59:05 -08:00
parent 0948ceed12
commit de9fa026df

View file

@ -42,12 +42,11 @@ def kill(inp, me=None, nick=None, input=None, notice=None):
return return
if inp == input.conn.nick.lower() or inp == "itself": if inp == input.conn.nick.lower() or inp == "itself":
target = random.choice(kills) target = inp
target = re.sub ('<who>', nick, target)
kill = re.sub ('<body>', random.choice(body), target)
else: else:
target = random.choice(kills) target = nick
target = re.sub ('<who>', inp, target) kill = random.choice(kills)
kill = re.sub ('<body>', random.choice(body), target) kill = re.sub ('<who>', target, target)
kill = re.sub ('<body>', random.choice(body), target)
msg = kill msg = kill
me(msg) me(msg)