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:12 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
commit8060c79a5f13dae4607475d159319afe5e241dcc (patch)
tree1fb23227a9c962ea178e472eb24aa973e41abda6 /src/protocol/ratbox.c
parentb1b5df38eb70068c3dea2dad90285d54b6365e4b (diff)
Added cmd_squit() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1244 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r--src/protocol/ratbox.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 3f798330a..62a50da56 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -1278,16 +1278,6 @@ void RatboxProto::cmd_invite(const char *source, const char *chan, const char *n
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "INVITE %s %s", UseTS6 ? (u ? u->uid : nick) : nick, chan);
}
-/* SQUIT */
-void ratbox_cmd_squit(const char *servname, const char *message)
-{
- if (!servname || !message) {
- return;
- }
-
- send_cmd(NULL, "SQUIT %s :%s", servname, message);
-}
-
int anope_event_mode(const char *source, int ac, const char **av)
{
User *u, *u2;
@@ -1539,7 +1529,7 @@ void ratbox_cmd_jupe(const char *jserver, const char *who, const char *reason)
reason ? ": " : "", reason ? reason : "");
if (findserver(servlist, jserver))
- ratbox_cmd_squit(jserver, rbuf);
+ ircd_proto.cmd_squit(jserver, rbuf);
ratbox_cmd_server(jserver, 2, rbuf);
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
@@ -1605,7 +1595,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(ratbox_cmd_242);
pmodule_cmd_243(ratbox_cmd_243);
pmodule_cmd_211(ratbox_cmd_211);
- pmodule_cmd_squit(ratbox_cmd_squit);
pmodule_cmd_svso(ratbox_cmd_svso);
pmodule_cmd_chg_nick(ratbox_cmd_chg_nick);
pmodule_cmd_svsnick(ratbox_cmd_svsnick);