diff options
| author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-20 05:45:44 +0000 |
|---|---|---|
| committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-20 05:45:44 +0000 |
| commit | 623440ac9ed3a5600a081990f6d479d7042b7c09 (patch) | |
| tree | 9b9ab222bdac61873e2616bdeff9260ceb2438f7 /src/hostserv.c | |
| parent | a4c34ef876480a6a50079575cedca6899e5c2840 (diff) | |
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
Diffstat (limited to 'src/hostserv.c')
| -rw-r--r-- | src/hostserv.c | 7 |
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 { |
