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:
@@ -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
@@ -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