diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-25 10:43:07 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-25 10:43:07 +0000 |
commit | 327f70187838545781d69d5e4f79deaac473263c (patch) | |
tree | 373e0a4501e644d66052bd2269209e08101d2d32 /src | |
parent | 549ac33242cc201737290866159da702807e7f53 (diff) |
Fixes, this can't be taken directly from 1.1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10265 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modes/umode_o.cpp | 4 |
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 */ |