summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-17 20:10:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-17 20:10:54 +0000
commitf911684c7da03ffaa0fbc5335dbe53d05dc05f71 (patch)
tree507fc922508107e24a4cbb946d9d860318432978 /src/users.cpp
parentefb645291d32a71bb7fe37be72d7c587b6f548d2 (diff)
Change /msg $* to have the correct source the same way /notice $* does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6588 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 7d653e52f..55aa7c1ed 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1716,7 +1716,7 @@ bool userrec::ChangeIdent(const char* newident)
return true;
}
-void userrec::NoticeAll(char* text, ...)
+void userrec::SendAll(const char* command, char* text, ...)
{
char textbuffer[MAXBUF];
char formatbuffer[MAXBUF];
@@ -1726,7 +1726,7 @@ void userrec::NoticeAll(char* text, ...)
vsnprintf(textbuffer, MAXBUF, text, argsPtr);
va_end(argsPtr);
- snprintf(formatbuffer,MAXBUF,":%s NOTICE $* :%s", this->GetFullHost(), textbuffer);
+ snprintf(formatbuffer,MAXBUF,":%s %s $* :%s", this->GetFullHost(), command, textbuffer);
std::string fmt = formatbuffer;
for (std::vector<userrec*>::const_iterator i = ServerInstance->local_users.begin(); i != ServerInstance->local_users.end(); i++)