summaryrefslogtreecommitdiff
path: root/src/modes
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes')
-rw-r--r--src/modes/umode_o.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp
index fee6fb447..1eaa30c90 100644
--- a/src/modes/umode_o.cpp
+++ b/src/modes/umode_o.cpp
@@ -24,9 +24,9 @@ ModeUserOperator::ModeUserOperator(InspIRCd* Instance) : ModeHandler(Instance, '
ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding, bool servermode)
{
/* Only opers can execute this class at all */
- if (!ServerInstance->ULine(source->nick) &&
+ if (!ServerInstance->ULine(source->nick.c_str()) &&
!ServerInstance->ULine(source->server) &&
- !*source->oper)
+ source->oper.empty())
return MODEACTION_DENY;
/* Not even opers can GIVE the +o mode, only take it away */