summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commit0e794a9e50cdf3b38a6c21936cc331bc7a50518c (patch)
tree52c7a80457da498b7cadca84f5fbe13d29e48c2b /src/protocol/ratbox.c
parent82722cf5d7d56a51830f797b5396908387107b64 (diff)
Added cmd_pong() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1237 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r--src/protocol/ratbox.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index ad882e924..911f1863a 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -913,7 +913,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
- ratbox_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
+ ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1285,13 +1285,10 @@ void RatboxProto::cmd_quit(const char *source, const char *buf)
}
/* PONG */
-void ratbox_cmd_pong(const char *servname, const char *who)
+void RatboxProto::cmd_pong(const char *servname, const char *who)
{
- if (UseTS6) {
- send_cmd(TS6SID, "PONG %s", who);
- } else {
- send_cmd(servname, "PONG %s", who);
- }
+ if (UseTS6) send_cmd(TS6SID, "PONG %s", who);
+ else send_cmd(servname, "PONG %s", who);
}
/* INVITE */
@@ -1626,7 +1623,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_375(ratbox_cmd_375);
pmodule_cmd_376(ratbox_cmd_376);
pmodule_cmd_351(ratbox_cmd_351);
- pmodule_cmd_pong(ratbox_cmd_pong);
pmodule_cmd_join(ratbox_cmd_join);
pmodule_cmd_unsqline(ratbox_cmd_unsqline);
pmodule_cmd_invite(ratbox_cmd_invite);