]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a (long standing) tiny bug: wallops do not go out to all +w users, only opered...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 3 Apr 2008 15:22:42 +0000 (15:22 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 3 Apr 2008 15:22:42 +0000 (15:22 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9285 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 956ed17c00fd539e9a96b48ce34b3d75377dada7..9bc7705040f4a9156f1e0fa3cf235396f3f42d56 100644 (file)
@@ -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;