diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 06:43:26 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 06:43:26 +0000 |
commit | 0a067563630ae108d2cca747e69adf2ead1788be (patch) | |
tree | 6a439660b9c589b13a6bb1e36b60bfdab04aca80 /src | |
parent | ea27cd70c98339c68eb99d1fa6d9dec46d02a234 (diff) |
Add WriteOpers_NoFormat, now to remember what I wanted it for
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3824 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/helperfuncs.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 830e1ef2d..9f184e868 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -970,6 +970,17 @@ void WriteOpers(const char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); + WriteOpers_NoFormat(textbuffer); +} + +void WriteOpers_NoFormat(const char* text) +{ + if (!text) + { + log(DEFAULT,"*** BUG *** WriteOpers_NoFormat was given an invalid parameter"); + return; + } + for (std::vector<userrec*>::iterator i = all_opers.begin(); i != all_opers.end(); i++) { userrec* a = *i; @@ -979,7 +990,7 @@ void WriteOpers(const char* text, ...) if (a->modebits & UM_SERVERNOTICE) { // send server notices to all with +s - WriteServ(a->fd,"NOTICE %s :%s",a->nick,textbuffer); + WriteServ(a->fd,"NOTICE %s :%s",a->nick,text); } } } |