mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
8b8f7e029a
commit
933d60cc97
@ -24,7 +24,9 @@ ModeUserOperator::ModeUserOperator(InspIRCd* Instance) : ModeHandler(Instance, '
|
||||
ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, 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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user