summaryrefslogtreecommitdiff
path: root/src
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:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commit859826d14b7710585ccad3ad9e65089fa71c61e9 (patch)
tree2b42deb1fe3f439232c06ec0cb3260aa8ba743bd /src
parent24ae706b9cbeef0efc697c15df3fec3828e2bdc1 (diff)
Forgot to remove references to the old ircd_cmd_svskill, oops.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1215 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/ircd.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/ircd.c b/src/ircd.c
index a243c9ca0..f26795f3d 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -46,7 +46,6 @@ void initIrcdProto()
{
ircdproto.ircd_set_mod_current_buffer = NULL;
ircdproto.ircd_set_umode = NULL;
- ircdproto.ircd_cmd_svskill = NULL;
ircdproto.ircd_cmd_372 = NULL;
ircdproto.ircd_cmd_372_error = NULL;
ircdproto.ircd_cmd_375 = NULL;
@@ -156,15 +155,14 @@ void anope_cmd_akill(const char *user, const char *host, const char *who, time_t
void anope_cmd_svskill(const char *source, const char *user, const char *fmt, ...)
{
- va_list args;
- char buf[BUFSIZE];
- *buf = '\0';
- if (fmt) {
- va_start(args, fmt);
- vsnprintf(buf, BUFSIZE - 1, fmt, args);
- va_end(args);
- }
- ircdproto.ircd_cmd_svskill(source, user, buf);
+ va_list args;
+ char buf[BUFSIZE] = "";
+ if (fmt) {
+ va_start(args, fmt);
+ vsnprintf(buf, BUFSIZE - 1, fmt, args);
+ va_end(args);
+ }
+ ircdprotonew->cmd_svskill(source, user, buf);
}
void anope_cmd_svsmode(User *u, int ac, const char **av)
@@ -684,12 +682,6 @@ void pmodule_set_mod_current_buffer(void (*func) (int ac, char **av))
ircdproto.ircd_set_mod_current_buffer = func;
}
-void
-pmodule_cmd_svskill(void (*func) (const char *source, const char *user, const char *buf))
-{
- ircdproto.ircd_cmd_svskill = func;
-}
-
void pmodule_cmd_372(void (*func) (const char *source, const char *msg))
{
ircdproto.ircd_cmd_372 = func;