mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 15:32:26 +01:00
- Fixed problem with opers having both 'admin' and 'coadmin' causing double-notices (#0001043).
This commit is contained in:
parent
7efe268c3b
commit
8c5246bc25
2 changed files with 7 additions and 0 deletions
1
Changes
1
Changes
|
@ -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).
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue