]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
Remove UserManager::GarbageCollect()
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index e89dda7b572aa1254fb88c61763a11060297a078..68f50bf6d046e47ebbc77067321b54b225afdd75 100644 (file)
@@ -47,9 +47,9 @@ class ModuleOperLog : public Module
                if (!validated)
                        return MOD_RES_PASSTHRU;
 
-               if ((user->IsOper()) && (IS_LOCAL(user)) && (user->HasPermission(command)))
+               if ((user->IsOper()) && (user->HasPermission(command)))
                {
-                       Command* thiscommand = ServerInstance->Parser->GetHandler(command);
+                       Command* thiscommand = ServerInstance->Parser.GetHandler(command);
                        if ((thiscommand) && (thiscommand->flags_needed == 'o'))
                        {
                                std::string msg = "[" + user->GetFullRealHost() + "] " + command + " " + irc::stringjoiner(parameters);