From fe63f8476ae2cebb25503f1c95abb27199f47018 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 16 Aug 2003 16:11:52 +0000 Subject: [PATCH] - Fixed minor /WALLOPS bug reported by Praetorian_ (#0001195). --- Changes | 1 + include/struct.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index e09c71d3e..34f68501d 100644 --- a/Changes +++ b/Changes @@ -2344,3 +2344,4 @@ seen. gmtime warning still there needed atm since +F/+f both ignore U lines. - Internal: changed 2 MyMalloc's to MyMallocEx (mem zerofill).. nothing was currently affected by this but it's easy to forget if you add new stuff. +- Fixed minor /WALLOPS bug reported by Praetorian_ (#0001195). diff --git a/include/struct.h b/include/struct.h index aeb188397..7b9c31312 100644 --- a/include/struct.h +++ b/include/struct.h @@ -361,7 +361,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */ #define IsWebTV(x) ((x)->umodes & UMODE_WEBTV) #define IsPerson(x) ((x)->user && IsClient(x)) #define IsPrivileged(x) (IsAnOper(x) || IsServer(x)) -#define SendWallops(x) (!IsMe(x) && ((x)->umodes & UMODE_WALLOP)) +#define SendWallops(x) (!IsMe(x) && IsPerson(x) && ((x)->umodes & UMODE_WALLOP)) #define SendServNotice(x) (((x)->user) && ((x)->user->snomask & SNO_SNOTICE)) #define IsListening(x) ((x)->flags & FLAGS_LISTEN) // #define DoAccess(x) ((x)->flags & FLAGS_CHKACCESS)