From 327f70187838545781d69d5e4f79deaac473263c Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 25 Aug 2008 10:43:07 +0000 Subject: 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 --- src/modes/umode_o.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3