1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-26 12:56:38 +02:00

sendto_ops is SNO_SNOTICE now

This commit is contained in:
griever
2002-01-15 04:27:14 +00:00
parent 587f4c4281
commit f65e857d4e
3 changed files with 10 additions and 21 deletions
+2
View File
@@ -1109,3 +1109,5 @@ v- Fixed some bugreport stuff
- Maybe (but I doubt it) fixed bug #0000040 (Win32 resolver crash) reported by Kyver
- Hey everyone it's point release time... I completely screwed up check_for_target_limit
- Made the kline-address error easier to understand (must be instead of is not)
- Made a SNOMASK for the +s notices, so you arent forced into hearing them if you just
want say +k
+6 -3
View File
@@ -284,9 +284,12 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */
#define SNO_TKL 0x0080
#define SNO_NICKCHANGE 0x0100
#define SNO_QLINE 0x0200
#define SNO_SNOTICE 0x0400
#define SNO_DEFOPER "+kcfvGq"
#define SNO_DEFUSER "+k"
#define SNO_DEFOPER "+kscfvGq"
#define SNO_DEFUSER "+ks"
#define SNO_NONOPERS (SNO_KILLS | SNO_SNOTICE)
#define SEND_UMODES (UMODE_INVISIBLE|UMODE_OPER|UMODE_WALLOP|UMODE_FAILOP|UMODE_HELPOP|UMODE_RGSTRONLY|UMODE_REGNICK|UMODE_SADMIN|UMODE_NETADMIN|UMODE_COADMIN|UMODE_ADMIN|UMODE_SERVICES|UMODE_HIDE|UMODE_WHOIS|UMODE_KIX|UMODE_BOT|UMODE_SECURE|UMODE_HIDING|UMODE_DEAF|UMODE_VICTIM|UMODE_HIDEOPER|UMODE_SETHOST|UMODE_STRIPBADWORDS|UMODE_WEBTV)
#define ALL_UMODES (SEND_UMODES|UMODE_SERVNOTICE|UMODE_LOCOP|UMODE_SERVICES)
@@ -340,7 +343,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */
#define IsPerson(x) ((x)->user && IsClient(x))
#define IsPrivileged(x) (IsAnOper(x) || IsServer(x))
#define SendWallops(x) (!IsMe(x) && ((x)->umodes & UMODE_WALLOP))
#define SendServNotice(x) ((x)->umodes & UMODE_SERVNOTICE)
#define SendServNotice(x) ((x)->user->snomask & SNO_SNOTICE)
#define IsListening(x) ((x)->flags & FLAGS_LISTEN)
#define DoAccess(x) ((x)->flags & FLAGS_CHKACCESS)
#define IsLocal(x) ((x)->flags & FLAGS_LOCAL)
+2 -18
View File
@@ -72,6 +72,7 @@ int sno_mask[] = {
SNO_TKL, 'G',
SNO_NICKCHANGE, 'n',
SNO_QLINE, 'q',
SNO_SNOTICE, 's',
0, 0
};
@@ -2095,24 +2096,7 @@ void set_snomask(aClient *sptr, char *snomask) {
}
}
if (!IsAnOper(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->user->snomask &= (SNO_NONOPERS);
}
}