mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:06:37 +02:00
Properly remove users on access lists that are below voice status when converting to XOP
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2664 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+2
-4
@@ -483,15 +483,13 @@ class CommandCSSet : public Command
|
||||
access->level = ACCESS_SOP;
|
||||
else if (CHECKLEV(CA_AUTOOP) || CHECKLEV(CA_OPDEOP) || CHECKLEV(CA_OPDEOPME))
|
||||
access->level = ACCESS_AOP;
|
||||
else if (ModeManager::FindChannelModeByName(CMODE_HALFOP))
|
||||
if (CHECKLEV(CA_AUTOHALFOP) || CHECKLEV(CA_HALFOP) || CHECKLEV(CA_HALFOPME))
|
||||
else if (ModeManager::FindChannelModeByName(CMODE_HALFOP) && (CHECKLEV(CA_AUTOHALFOP) || CHECKLEV(CA_HALFOP) || CHECKLEV(CA_HALFOPME)))
|
||||
access->level = ACCESS_HOP;
|
||||
else if (CHECKLEV(CA_AUTOVOICE) || CHECKLEV(CA_VOICE) || CHECKLEV(CA_VOICEME))
|
||||
access->level = ACCESS_VOP;
|
||||
else
|
||||
{
|
||||
access->in_use = 0;
|
||||
access->nc = NULL;
|
||||
ci->EraseAccess(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user