From 623440ac9ed3a5600a081990f6d479d7042b7c09 Mon Sep 17 00:00:00 2001 From: "trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 20 Nov 2004 05:45:44 +0000 Subject: BUILD : 1.7.6 (452) BUGS : N/A NOTES : 1. Fixed some config options could overflow strtol(), 2. Fixed CTCP Ping replies when UsePrivmsg is enabled git-svn-id: svn://svn.anope.org/anope/trunk@452 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@306 5417fbe8-f217-4b02-8779-1006273d7864 --- src/chanserv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/chanserv.c') 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 { -- cgit