Fix error when silenced gunner shoots
This commit is contained in:
parent
274aedf050
commit
ff737609b5
@ -241,7 +241,7 @@ def complete_match(string, matches):
|
|||||||
#wrapper around complete_match() used for roles
|
#wrapper around complete_match() used for roles
|
||||||
def get_victim(cli, nick, victim, self_in_list = False):
|
def get_victim(cli, nick, victim, self_in_list = False):
|
||||||
if not victim:
|
if not victim:
|
||||||
cli.notice(cli, nick, "Not enough parameters")
|
cli.notice(nick, "Not enough parameters")
|
||||||
return
|
return
|
||||||
pl = [x for x in var.list_players() if x != nick or self_in_list]
|
pl = [x for x in var.list_players() if x != nick or self_in_list]
|
||||||
pll = [x.lower() for x in pl]
|
pll = [x.lower() for x in pl]
|
||||||
@ -3725,7 +3725,7 @@ def shoot(cli, nick, chan, rest):
|
|||||||
cli.notice(nick, "You don't have any more bullets.")
|
cli.notice(nick, "You don't have any more bullets.")
|
||||||
return
|
return
|
||||||
elif nick in var.SILENCED:
|
elif nick in var.SILENCED:
|
||||||
cli.notice(cli, nick, "You have been silenced, and are unable to use any special powers.")
|
cli.notice(nick, "You have been silenced, and are unable to use any special powers.")
|
||||||
return
|
return
|
||||||
victim = get_victim(cli, nick, re.split(" +",rest)[0])
|
victim = get_victim(cli, nick, re.split(" +",rest)[0])
|
||||||
if not victim:
|
if not victim:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user