From f135c5375141ea212357ec1e80b0b86f3e2f36aa Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Wed, 7 Apr 2010 16:53:59 -0400 Subject: [PATCH] Make PRIVMSG @#channel and PRIVMSG +#channel go to halfops and admins as well as chanops. 6.1 is now feature complete. --- TODO-SHADOW | 4 ---- include/channel.h | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/TODO-SHADOW b/TODO-SHADOW index 762556a..1f5ad22 100644 --- a/TODO-SHADOW +++ b/TODO-SHADOW @@ -1,7 +1,3 @@ -Todo list for ShadowIRCd 6.1 ------------------------------ -* notice/message !#channel and %#channel - Todo list for ShadowIRCd 6.2 ---------------------------- * channel::disabledmodes diff --git a/include/channel.h b/include/channel.h index 3a74689..6896a2e 100644 --- a/include/channel.h +++ b/include/channel.h @@ -156,8 +156,8 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p, #define CHFL_ADMIN 0x0080 #define ONLY_OPERS 0x0100 #define ALL_MEMBERS CHFL_PEON -#define ONLY_CHANOPS CHFL_CHANOP -#define ONLY_CHANOPSVOICED (CHFL_CHANOP|CHFL_VOICE) +#define ONLY_CHANOPS (CHFL_ADMIN|CHFL_CHANOP|CHFL_HALFOP) +#define ONLY_CHANOPSVOICED (CHFL_ADMIN|CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE) #define is_chmode_h(x) ((x) && (x)->flags & CHFL_HALFOP) /* does not check if halfop is enabled, should typically not be used */ #define is_chmode_a(x) ((x) && (x)->flags & CHFL_ADMIN) /* does not check if admin is enabled, should typically not be used */