Merge pull request #41 from Transfusion/enable_ctcp_ping

Enable CTCP PING as per issue #37
This commit is contained in:
nyuszika7h 2014-07-15 15:55:02 +02:00
commit 91e597d8c0

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."""