From b4175f4f09ffc04cd720df62789f043c9182b099 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 27 Aug 2007 23:05:49 +0000 Subject: While I'm in here, make it easier to read, and use short circuiting (IS_REMOTE is quicker than checking if the user really has access) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7925 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index a155a6207..d38a6bbca 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -253,7 +253,7 @@ CmdResult CommandParser::CallHandler(const std::string &commandname,const char** { if (n->second->flags_needed) { - if ((user->HasPermission(commandname)) || (!IS_LOCAL(user))) + if (IS_REMOTE(user) || user->HasPermission(commandname)) { return n->second->Handle(parameters,pcnt,user); } -- cgit v1.2.3