diff options
| author | 2007-08-26 20:43:15 +0000 | |
|---|---|---|
| committer | 2007-08-26 20:43:15 +0000 | |
| commit | d58d9fb4957168c134ae1e89005ff03154366a2a (patch) | |
| tree | d26b3ee3e6d7fe6555d192f6316d60da78721ffd /include | |
| parent | Fix for bug #376 - FEATURE - (sorry w00t) - not backporting to stable. (diff) | |
| download | inspircd++-d58d9fb4957168c134ae1e89005ff03154366a2a.tar.gz inspircd++-d58d9fb4957168c134ae1e89005ff03154366a2a.tar.bz2 inspircd++-d58d9fb4957168c134ae1e89005ff03154366a2a.zip | |
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.h | 7 |
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. |
