This commit is contained in:
skizzerz 2016-07-21 17:05:38 -05:00
parent 4301ba4c48
commit 07e3018d06

View File

@ -333,6 +333,7 @@ def complete_match(string, matches):
#wrapper around complete_match() used for roles
def get_victim(cli, nick, victim, in_chan, self_in_list=False, bot_in_list=False):
chan = botconfig.CHANNEL if in_chan else nick
if not victim:
reply(cli, nick, chan, messages["not_enough_parameters"], private=True)
return
@ -348,7 +349,7 @@ def get_victim(cli, nick, victim, in_chan, self_in_list=False, bot_in_list=False
#ensure messages about not being able to act on yourself work
if num_matches == 0 and nick.lower().startswith(victim.lower()):
return nick
reply(cli, nick, botconfig.CHANNEL, messages["not_playing"].format(victim), private=True)
reply(cli, nick, chan, messages["not_playing"].format(victim), private=True)
return
return pl[pll.index(tempvictim)] #convert back to normal casing