1
0
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:
codemastr
2005-03-06 16:49:32 +00:00
parent 71a2d3c316
commit 7e83d6c150
2 changed files with 11 additions and 6 deletions
+10 -6
View File
@@ -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...