From e6fa614ad27cd68aa61605ca0884eee9c44384eb Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 May 2007 16:22:35 +0000 Subject: We've had an IS_OPER macro for a long time. About time we started using it, maybe? :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 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 6fdf1800c..ae580c6a7 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -332,7 +332,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) return; } } - if ((user->registered == REG_ALL) && (!*user->oper) && (cm->second->IsDisabled())) + if ((user->registered == REG_ALL) && (!IS_OPER(user)) && (cm->second->IsDisabled())) { /* command is disabled! */ user->WriteServ("421 %s %s :This command has been disabled.",user->nick,command.c_str()); -- cgit v1.2.3