diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | 0e794a9e50cdf3b38a6c21936cc331bc7a50518c (patch) | |
tree | 52c7a80457da498b7cadca84f5fbe13d29e48c2b /src/protocol/charybdis.c | |
parent | 82722cf5d7d56a51830f797b5396908387107b64 (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/charybdis.c')
-rw-r--r-- | src/protocol/charybdis.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 658c47bd1..10c53bec4 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -973,7 +973,7 @@ int anope_event_ping(const char *source, int ac, const char **av) { if (ac < 1) return MOD_CONT; - charybdis_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]); + ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]); return MOD_CONT; } @@ -1353,14 +1353,11 @@ void CharybdisProto::cmd_quit(const char *source, const char *buf) } /* PONG */ -void charybdis_cmd_pong(const char *servname, const char *who) +void CharybdisProto::cmd_pong(const char *servname, const char *who) { - if (UseTS6) { - /* deliberately no SID in the first parameter -- jilles */ - send_cmd(TS6SID, "PONG %s :%s", servname, who); - } else { - send_cmd(servname, "PONG %s :%s", servname, who); - } + /* deliberately no SID in the first parameter -- jilles */ + if (UseTS6) send_cmd(TS6SID, "PONG %s :%s", servname, who); + else send_cmd(servname, "PONG %s :%s", servname, who); } /* INVITE */ @@ -1732,7 +1729,6 @@ void moduleAddAnopeCmds() pmodule_cmd_375(charybdis_cmd_375); pmodule_cmd_376(charybdis_cmd_376); pmodule_cmd_351(charybdis_cmd_351); - pmodule_cmd_pong(charybdis_cmd_pong); pmodule_cmd_join(charybdis_cmd_join); pmodule_cmd_unsqline(charybdis_cmd_unsqline); pmodule_cmd_invite(charybdis_cmd_invite); |