diff options
Diffstat (limited to 'src/modes/umode_n.cpp')
-rw-r--r-- | src/modes/umode_n.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes/umode_n.cpp b/src/modes/umode_n.cpp index fe75fd222..ed08b60f4 100644 --- a/src/modes/umode_n.cpp +++ b/src/modes/umode_n.cpp @@ -24,7 +24,7 @@ ModeUserServerNoticeMask::ModeUserServerNoticeMask(InspIRCd* Instance) : ModeHan ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Channel*, std::string ¶meter, bool adding, bool servermode) { /* Only opers can change other users modes */ - if ((source != dest) && (!*source->oper)) + if ((source != dest) && (!IS_OPER(source))) return MODEACTION_DENY; /* Set the array fields */ |