From d58d9fb4957168c134ae1e89005ff03154366a2a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Aug 2007 20:43:15 +0000 Subject: Add option to set invite announcements to nobody, ops only, or all users, based on options:announceinvites. Part of bug #386, should not be backported. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7837 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index 648b02eb1..703c28414 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -239,7 +239,10 @@ class CoreExport ServerConfig : public Extensible public: - /* Pointer to function that validates dns server addresses (can be changed depending on platform) */ + /** Used to indicate who we announce invites to on a channel */ + enum InviteAnnounceState { INVITE_ANNOUNCE_NONE, INVITE_ANNOUNCE_ALL, INVITE_ANNOUNCE_OPS }; + + /** Pointer to function that validates dns server addresses (can be changed depending on platform) */ Validator DNSServerValidator; InspIRCd* GetInstance(); @@ -459,7 +462,7 @@ class CoreExport ServerConfig : public Extensible /** Announce invites to the channel with a server notice */ - bool AnnounceInvites; + InviteAnnounceState AnnounceInvites; /** If this is enabled then operators will * see invisible (+i) channels in /whois. -- cgit v1.2.3