mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 01:03:12 +02:00
Made +g get removed when an oper sets -o
This commit is contained in:
+10
-6
@@ -2216,6 +2216,7 @@ DLLFUNC CMD_FUNC(_m_umode)
|
||||
ClearHideOper(sptr);
|
||||
ClearCoAdmin(sptr);
|
||||
ClearHelpOp(sptr);
|
||||
ClearFailops(sptr);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2241,12 +2242,15 @@ DLLFUNC CMD_FUNC(_m_umode)
|
||||
This is to remooove the kix bug.. and to protect some stuffie
|
||||
-techie
|
||||
*/
|
||||
if (MyClient(sptr) && (sptr->umodes & UMODE_KIX) && (!OPCanUmodeq(sptr) || !IsAnOper(sptr)))
|
||||
sptr->umodes &= ~UMODE_KIX;
|
||||
if (MyClient(sptr) && (sptr->umodes & UMODE_SECURE) && !IsSecure(sptr))
|
||||
sptr->umodes &= ~UMODE_SECURE;
|
||||
if (MyClient(sptr) && !(sptr->umodes & UMODE_SECURE) && IsSecure(sptr))
|
||||
sptr->umodes |= UMODE_SECURE;
|
||||
if (MyClient(sptr))
|
||||
{
|
||||
if ((sptr->umodes & UMODE_KIX) && (!OPCanUmodeq(sptr) || !IsAnOper(sptr)))
|
||||
sptr->umodes &= ~UMODE_KIX;
|
||||
if ((sptr->umodes & UMODE_SECURE) && !IsSecure(sptr))
|
||||
sptr->umodes &= ~UMODE_SECURE;
|
||||
if (!(sptr->umodes & UMODE_SECURE) && IsSecure(sptr))
|
||||
sptr->umodes |= UMODE_SECURE;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* For Services Protection...
|
||||
|
||||
Reference in New Issue
Block a user