1
0
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:
Bram Matthys
2003-02-04 18:02:44 +00:00
parent c0a3cd9c14
commit 0b2d842d55
2 changed files with 9 additions and 33 deletions
+1
View File
@@ -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
View File
@@ -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);
}
/*