summaryrefslogtreecommitdiff
path: root/src/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/send.c b/src/send.c
index 754b45888..c5961d5d3 100644
--- a/src/send.c
+++ b/src/send.c
@@ -242,3 +242,23 @@ void privmsg(char *source, char *dest, const char *fmt, ...)
}
anope_cmd_privmsg2(source, dest, buf);
}
+
+/* cause #defines just bitched to much, its back and hooks to
+ a legacy in the ircd protocol files - TSL */
+void wallops(char *source, 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);
+ }
+ if (!buf) {
+ return;
+ }
+
+ anope_cmd_global_legacy(source, buf);
+}