summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarDoug Freed <dwfreed@mtu.edu>2015-03-01 05:28:30 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-01 05:28:30 +0400
commite07d1efcdfcda394694b78e3b4d674a6bddb6b4d (patch)
tree7ea44ece8ee092a12af75796792e7c9aa26d728f
parentacee655335162e3430f5e94bb0e7080046a2be35 (diff)
Allow ;ping <cookie> (acting as echo) for users with 's' flag
-rw-r--r--config-default/commands.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml
index 41351a1..4503c56 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -632,7 +632,12 @@
$conn->sl("WHO $chan %tcnuhra,314");
]]>
</command>
- <command cmd="^;ping$">
+ <command cmd="^;ping\s+(\S.*)$" flag="s">
+ <![CDATA[
+ $conn->privmsg($event->replyto, "pong $1");
+ ]]>
+ </command>
+ <command cmd="^;ping\s*$">
<![CDATA[
$conn->privmsg($event->replyto, "pong");
]]>