Enable CTCP PING as per issue #37

This commit is contained in:
Transfusion 2014-07-15 21:23:41 +08:00
parent 835e76c621
commit ae64979e34

View File

@ -2220,7 +2220,10 @@ def relay(cli, nick, rest):
if (guy in var.PLAYERS and
var.PLAYERS[guy]["cloak"] in var.SIMPLE_NOTIFY)], "\02{0}\02 says: {1}".format(nick, rest), True)
@pmcmd("")
def ctcp_ping(cli, nick, msg):
if msg.startswith("\x01PING"):
cli.notice(nick, msg)
def transition_night(cli):
if var.PHASE == "night":
@ -2637,7 +2640,6 @@ def on_error(cli, pfx, msg):
elif msg.startswith("Closing Link:"):
raise SystemExit
@cmd("fstasis", admin_only=True)
def fstasis(cli, nick, chan, rest):
"""Admin command for removing or setting stasis penalties."""