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