Merge pull request #41 from Transfusion/enable_ctcp_ping
Enable CTCP PING as per issue #37
This commit is contained in:
commit
91e597d8c0
@ -2220,7 +2220,10 @@ def relay(cli, nick, rest):
|
|||||||
if (guy in var.PLAYERS and
|
if (guy in var.PLAYERS and
|
||||||
var.PLAYERS[guy]["cloak"] in var.SIMPLE_NOTIFY)], "\02{0}\02 says: {1}".format(nick, rest), True)
|
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):
|
def transition_night(cli):
|
||||||
if var.PHASE == "night":
|
if var.PHASE == "night":
|
||||||
@ -2637,7 +2640,6 @@ def on_error(cli, pfx, msg):
|
|||||||
elif msg.startswith("Closing Link:"):
|
elif msg.startswith("Closing Link:"):
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
|
||||||
@cmd("fstasis", admin_only=True)
|
@cmd("fstasis", admin_only=True)
|
||||||
def fstasis(cli, nick, chan, rest):
|
def fstasis(cli, nick, chan, rest):
|
||||||
"""Admin command for removing or setting stasis penalties."""
|
"""Admin command for removing or setting stasis penalties."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user