From 561ca4e2562c1e7a745bd942b7c87d2cd8bfdb5e Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 3 Apr 2008 15:22:42 +0000 Subject: 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 --- src/users.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3