summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h1
-rw-r--r--src/ircd.c24
3 files changed, 8 insertions, 18 deletions
diff --git a/include/extern.h b/include/extern.h
index cff20bf1b..66760eddc 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -609,7 +609,6 @@ E int servernum;
/**** ircd.c ****/
E void pmodule_ircd_proto(IRCDProtoNew *);
E void pmodule_set_mod_current_buffer(void (*func) (int ac, char **av));
-E void pmodule_cmd_svskill(void (*func) (const char *source, const char *user, const char *buf));
E void pmodule_cmd_372(void (*func) (const char *source, const char *msg));
E void pmodule_cmd_372_error(void (*func) (const char *source));
E void pmodule_cmd_375(void (*func) (const char *source));
diff --git a/include/services.h b/include/services.h
index 225d29924..ac36c6947 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1075,7 +1075,6 @@ struct session_ {
**/
typedef struct ircd_proto_ {
void (*ircd_set_mod_current_buffer)(int ac, char **av);
- void (*ircd_cmd_svskill)(const char *source, const char *user, const char *buf);
void (*ircd_cmd_372)(const char *source, const char *msg);
void (*ircd_cmd_372_error)(const char *source);
void (*ircd_cmd_375)(const char *source);
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;