Make 'immunize' not fail if doctor is not in var.DOCTORS
This commit is contained in:
parent
96933498d8
commit
5a3311aa99
@ -4620,6 +4620,8 @@ def immunize(cli, nick, chan, rest):
|
||||
if nick in var.DOCTORS and var.DOCTORS[nick] == 0:
|
||||
pm(cli, nick, "You have run out of immunizations.")
|
||||
return
|
||||
if not nick in var.DOCTORS: # something with amnesiac or clone or exchange totem
|
||||
var.DOCTORS[nick] = math.ceil(var.DOCTOR_IMMUNIZATION_MULTIPLIER * len(var.ALL_PLAYERS))
|
||||
victim = get_victim(cli, nick, re.split(" +",rest)[0], True)
|
||||
if not victim:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user