Exclude illegal_joins (stasised people) from the !ping list.

Pinging people who are in stasis to join games is both futile and
inflammatory. Closes issue #16
This commit is contained in:
Melissa Draper 2013-07-13 23:28:34 +12:00
parent ecd62cf0ef
commit 7f8d5286b3

View File

@ -262,6 +262,7 @@ def pinger(cli, nick, chan, rest):
if (all((not var.OPT_IN_PING,
'G' not in status, # not /away
'+' not in status, # not already joined (voiced)
cloak not in var.illegal_joins, # not in stasis
cloak not in var.AWAY)) or
all((var.OPT_IN_PING, '+' not in status,
cloak in var.PING_IN))):