summaryrefslogtreecommitdiff
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 10dcdb37d..223768dac 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -39,7 +39,7 @@ class OperPrefixMode : public ModeHandler
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
{
- if (IS_FAKE(source) || (source && ServerInstance->ULine(source->server)))
+ if (IS_SERVER(source) || (source && ServerInstance->ULine(source->server)))
return MODEACTION_ALLOW;
else
{
@@ -110,7 +110,7 @@ class ModuleOperPrefixMode : public Module
ModResult OnRawMode(User* user, Channel* chan, const char mode, const std::string &param, bool adding, int pcnt)
{
/* force event propagation to its ModeHandler */
- if (!IS_FAKE(user) && chan && (mode == 'y'))
+ if (!IS_SERVER(user) && chan && (mode == 'y'))
return MOD_RES_ALLOW;
return MOD_RES_PASSTHRU;
}