summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index 8bdfed631..48da2e4b1 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -597,9 +597,10 @@ void chanserv(User * u, char *buf)
if (!cmd) {
return;
} else if (stricmp(cmd, "\1PING") == 0) {
- if (!(s = strtok(NULL, "")))
- s = "\1";
- notice(s_ChanServ, u->nick, "\1PING %s", s);
+ if (!(s = strtok(NULL, ""))) {
+ s = "";
+ }
+ anope_cmd_ctcp(s_ChanServ, u->nick, "PING %s", s);
} else if (skeleton) {
notice_lang(s_ChanServ, u, SERVICE_OFFLINE, s_ChanServ);
} else {