summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 20:43:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 20:43:15 +0000
commitd58d9fb4957168c134ae1e89005ff03154366a2a (patch)
treed26b3ee3e6d7fe6555d192f6316d60da78721ffd /include
parent3a7af31bcd081debd490aa57a1d142bebf430b61 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h7
1 files changed, 5 insertions, 2 deletions
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.