]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/umode_o.cpp
Add user/channel mode synchronisation detection to CAPAB - link will now drop if...
[user/henk/code/inspircd.git] / src / modes / umode_o.cpp
index fee6fb447b5d9fe8481e3a42422a8e6baf8d898d..1eaa30c90a603381dfb8aa8bb99fdbfa59ca45a5 100644 (file)
@@ -24,9 +24,9 @@ ModeUserOperator::ModeUserOperator(InspIRCd* Instance) : ModeHandler(Instance, '
 ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding, bool servermode)
 {
        /* Only opers can execute this class at all */
-       if (!ServerInstance->ULine(source->nick) &&
+       if (!ServerInstance->ULine(source->nick.c_str()) &&
                !ServerInstance->ULine(source->server) &&
-               !*source->oper)
+               source->oper.empty())
                return MODEACTION_DENY;
 
        /* Not even opers can GIVE the +o mode, only take it away */