summaryrefslogtreecommitdiff
path: root/src/modules/m_override.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:49:13 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:49:13 +0000
commitec2106579c77a98dfdb209864a1e1b5ae1f07e7f (patch)
treecd81cf8d2f9e2025dd3e3aa9b04a1b94b29d00cb /src/modules/m_override.cpp
parentc8c8552683ae7fde9131b48b1dff47398e20f324 (diff)
The commit that should have been r7000: src/modules now uses IS_OPER instead of not so tidy char equivilant
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7001 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_override.cpp')
-rw-r--r--src/modules/m_override.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index e68d3f760..31b52e853 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -107,7 +107,7 @@ class ModuleOverride : public Module
virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason)
{
- if ((*source->oper) && (CanOverride(source,"KICK")))
+ if (IS_OPER(source) && CanOverride(source,"KICK"))
{
if (((chan->GetStatus(source) == STATUS_HOP) && (chan->GetStatus(user) == STATUS_OP)) || (chan->GetStatus(source) < STATUS_VOICE))
{
@@ -121,7 +121,7 @@ class ModuleOverride : public Module
virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type)
{
- if (*source->oper)
+ if (IS_OPER(source))
{
if (source && channel)
{
@@ -232,7 +232,7 @@ class ModuleOverride : public Module
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs)
{
- if (*user->oper)
+ if (IS_OPER(user))
{
if (chan)
{