realized I was repeating lines, fixed that
This commit is contained in:
parent
0948ceed12
commit
de9fa026df
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue