mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 09:33:12 +02:00
Code cleanup in m_umode.
This commit is contained in:
@@ -1874,3 +1874,4 @@ seen. gmtime warning still there
|
||||
with an often changing host (like dyndns.org).
|
||||
- Documentation updates for nodnscache.
|
||||
- Fixed minor memleak with zip links.
|
||||
- Code cleanup in m_umode
|
||||
|
||||
+8
-33
@@ -2386,39 +2386,14 @@ CMD_FUNC(m_umode)
|
||||
*/
|
||||
if (!IsAnOper(sptr) && !IsServer(cptr))
|
||||
{
|
||||
if (IsWhois(sptr))
|
||||
sptr->umodes &= ~UMODE_WHOIS;
|
||||
if (IsAdmin(sptr))
|
||||
ClearAdmin(sptr);
|
||||
if (IsSAdmin(sptr))
|
||||
ClearSAdmin(sptr);
|
||||
if (IsNetAdmin(sptr))
|
||||
ClearNetAdmin(sptr);
|
||||
if (IsHideOper(sptr))
|
||||
ClearHideOper(sptr);
|
||||
if (IsCoAdmin(sptr))
|
||||
ClearCoAdmin(sptr);
|
||||
if (IsHelpOp(sptr))
|
||||
ClearHelpOp(sptr);
|
||||
if (sptr->user->snomask & SNO_CLIENT)
|
||||
sptr->user->snomask &= ~SNO_CLIENT;
|
||||
if (sptr->user->snomask & SNO_FCLIENT)
|
||||
sptr->user->snomask &= ~SNO_FCLIENT;
|
||||
if (sptr->user->snomask & SNO_FLOOD)
|
||||
sptr->user->snomask &= ~SNO_FLOOD;
|
||||
if (sptr->user->snomask & SNO_JUNK)
|
||||
sptr->user->snomask &= ~SNO_JUNK;
|
||||
if (sptr->user->snomask & SNO_EYES)
|
||||
sptr->user->snomask &= ~SNO_EYES;
|
||||
if (sptr->user->snomask & SNO_VHOST)
|
||||
sptr->user->snomask &= ~SNO_VHOST;
|
||||
if (sptr->user->snomask & SNO_TKL)
|
||||
sptr->user->snomask &= ~SNO_TKL;
|
||||
if (sptr->user->snomask & SNO_NICKCHANGE)
|
||||
sptr->user->snomask &= ~SNO_NICKCHANGE;
|
||||
if (sptr->user->snomask & SNO_QLINE)
|
||||
sptr->user->snomask &= ~SNO_QLINE;
|
||||
|
||||
sptr->umodes &= ~UMODE_WHOIS;
|
||||
ClearAdmin(sptr);
|
||||
ClearSAdmin(sptr);
|
||||
ClearNetAdmin(sptr);
|
||||
ClearHideOper(sptr);
|
||||
ClearCoAdmin(sptr);
|
||||
ClearHelpOp(sptr);
|
||||
sptr->user->snomask &= (SNO_NONOPERS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user