inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit dd6f545ab6ed7e6ce0800431addef6af0d2610c5
parent 785f3a28666ac2d78c3315f7c9efa6b7fd06a37e
Author: Peter Powell <petpow@saberuk.com>
Date:   Thu,  7 Feb 2019 11:57:33 +0000

Fix an unintentionally inverted condition in core_oper.

Diffstat:
Msrc/coremods/core_oper/core_oper.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp @@ -58,7 +58,7 @@ class CoreModOper : public Module void OnPostOper(User* user, const std::string&, const std::string&) CXX11_OVERRIDE { LocalUser* luser = IS_LOCAL(user); - if (luser) + if (!luser) return; const std::string vhost = luser->oper->getConfig("vhost");