]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Dont check APrefix both times :p
[user/henk/code/inspircd.git] / 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;