1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 04:13:14 +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
+1
View File
@@ -757,3 +757,4 @@
- Made windows installer also install doc\technical\*
- Removed oldcloak cloaking module, everyone should be using the new cloak one by now.
- Updated release notes (translated docs, zlib, doc\technical, sp/cS desynch).
- Made +g get removed when an oper sets -o (#0002399) reported by Ron2K.
+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...