diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-19 15:16:24 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-19 15:16:24 +0000 |
commit | b5965b08c23e3e89404b481386f2e56ce7cb7ce2 (patch) | |
tree | 842721a7e76de1cb7807a55d287498783e2dbc88 /src/command_parse.cpp | |
parent | 80abf1ed3ef868b1cad85785b2386f5cbd818ba4 (diff) |
Extbans can be VF_OPTCOMMON as they do not desync on module add/remove
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12303 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 61c23bf62..2e20fc27f 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -12,17 +12,6 @@ */ #include "inspircd.h" -#include "xline.h" -#include "socketengine.h" -#include "socket.h" -#include "command_parse.h" -#include "exitcodes.h" - -/* Directory Searching for Unix-Only */ -#ifndef WIN32 -#include <dirent.h> -#include <dlfcn.h> -#endif int InspIRCd::PassCompare(Extensible* ex, const std::string &data, const std::string &input, const std::string &hashtype) { @@ -204,10 +193,10 @@ bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd) /* Modify the user's penalty regardless of whether or not the command exists */ bool do_more = true; - if (IS_LOCAL(user) && !user->HasPrivPermission("users/flood/no-throttle")) + if (!user->HasPrivPermission("users/flood/no-throttle")) { // If it *doesn't* exist, give it a slightly heftier penalty than normal to deter flooding us crap - IS_LOCAL(user)->CommandFloodPenalty += cm != cmdlist.end() ? cm->second->Penalty * 1000 : 2000; + user->CommandFloodPenalty += cm != cmdlist.end() ? cm->second->Penalty * 1000 : 2000; } |