From: w00t Date: Thu, 3 Apr 2008 15:22:42 +0000 (+0000) Subject: Fix a (long standing) tiny bug: wallops do not go out to all +w users, only opered... X-Git-Tag: v2.0.23~3548 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=561ca4e2562c1e7a745bd942b7c87d2cd8bfdb5e;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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;