diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-23 06:48:22 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-23 06:48:22 +0000 |
commit | 297b11d1a8e2896c5ae29f4978dfd88cdbb22f27 (patch) | |
tree | 8eafd4de288b913a74f933173f4789d57d0ba7b0 /src/send.c | |
parent | 91e8ac0878ecac082bc1b87f433deb9fe3ad32e4 (diff) |
BUILD : 1.7.5 (418) BUGS : N/A NOTES : 1. Fixed Rage IRCD compiler error, 2. Added hook for Unreal SJOIN +I support, 3. wallops() is back, 4. depricated.h added to help older modules work with the new commands
git-svn-id: svn://svn.anope.org/anope/trunk@418 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@279 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 20 |
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); +} |