Allow U:Lines to deoper people, fixes bug #599 reported by mixx941.

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10257 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-08-24 23:41:57 +00:00
parent 8b8f7e029a
commit 933d60cc97

View File

@ -24,7 +24,9 @@ ModeUserOperator::ModeUserOperator(InspIRCd* Instance) : ModeHandler(Instance, '
ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
/* Only opers can execute this class at all */
if (!*source->oper)
if (!ServerInstance->ULine(source->nick) &&
!ServerInstance->ULine(source->server) &&
!*source->oper)
return MODEACTION_DENY;
/* Not even opers can GIVE the +o mode, only take it away */