- Fixed problem with opers having both 'admin' and 'coadmin' causing double-notices ().

This commit is contained in:
Bram Matthys 2003-08-31 21:11:13 +00:00
parent 7efe268c3b
commit 8c5246bc25
2 changed files with 7 additions and 0 deletions
Changes
src/modules

View file

@ -2380,3 +2380,4 @@ seen. gmtime warning still there
- Fixed bug regarding hidden opers + m_whois cleanup (#0001208).
- Made SSL users unable to -z themselves, also added 2 flags to /stats S,
reported by Joolz (#0001200).
- Fixed problem with opers having both 'admin' and 'coadmin' causing double-notices (#0001043).

View file

@ -290,6 +290,12 @@ DLLFUNC int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[]) {
sptr->user->snomask |= SNO_SNOTICE; /* set +s if needed */
sptr->umodes |= UMODE_SERVNOTICE;
}
/* This is for users who have both 'admin' and 'coadmin' in their conf */
if (IsCoAdmin(sptr) && IsAdmin(sptr))
{
sptr->umodes &= ~UMODE_COADMIN;
sptr->oflag &= ~OFLAG_COADMIN;
}
send_umode_out(cptr, sptr, old);
sendto_one(sptr, rpl_str(RPL_SNOMASK),
me.name, parv[0], get_sno_str(sptr));