summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-03 15:22:42 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-03 15:22:42 +0000
commit561ca4e2562c1e7a745bd942b7c87d2cd8bfdb5e (patch)
tree563a3c0bfbb52afa65abd23d18ce5c80a9f39a5e /src
parentb4c7be2458373ae663cd9408c9bb4efbd13bb84a (diff)
Fix a (long standing) tiny bug: wallops do not go out to all +w users, only opered users. This needs applying to 1.1 too, will be done shortly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9285 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 956ed17c0..9bc770504 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1450,7 +1450,7 @@ void User::WriteCommonExcept(const std::string &text)
void User::WriteWallOps(const std::string &text)
{
- if (!IS_OPER(this) && IS_LOCAL(this))
+ if (!IS_LOCAL(this))
return;
std::string wallop("WALLOPS :");
@@ -1466,6 +1466,9 @@ void User::WriteWallOps(const std::string &text)
void User::WriteWallOps(const char* text, ...)
{
+ if (!IS_LOCAL(this))
+ return;
+
char textbuffer[MAXBUF];
va_list argsPtr;