summaryrefslogtreecommitdiff
path: root/src/cmd_modules.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 16:22:35 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 16:22:35 +0000
commite6fa614ad27cd68aa61605ca0884eee9c44384eb (patch)
tree359a35a935733f3cd3e9dffaadd7ce8f0054a8f8 /src/cmd_modules.cpp
parentcf83d918227fd56a4cdb3d7392ba2b35aefd444d (diff)
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
Diffstat (limited to 'src/cmd_modules.cpp')
-rw-r--r--src/cmd_modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp
index 6f7633cc9..916f480fd 100644
--- a/src/cmd_modules.cpp
+++ b/src/cmd_modules.cpp
@@ -60,7 +60,7 @@ CmdResult cmd_modules::Handle (const char** parameters, int pcnt, userrec *user)
if (!flagstate[0])
strcpy(flagstate," <no flags>");
strlcpy(modulename,ServerInstance->Config->module_names[i].c_str(),256);
- if (*user->oper)
+ if (IS_OPER(user))
{
user->WriteServ("900 %s :0x%08lx %d.%d.%d.%d %s (%s)",user->nick,ServerInstance->modules[i],V.Major,V.Minor,V.Revision,V.Build,ServerConfig::CleanFilename(modulename),flagstate+2);
}