From 4a50237d63ae019fbfaf0901ef59a772e66080df Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 May 2007 12:02:10 +0000 Subject: Config option for default channel modes -- more to follow, don't use yet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7163 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 4 ++++ include/configreader.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 950275974..20454e0b9 100644 --- a/include/channels.h +++ b/include/channels.h @@ -122,6 +122,10 @@ class CoreExport chanrec : public Extensible */ static chanrec* ForceChan(InspIRCd* Instance, chanrec* Ptr, userrec* user, const std::string &privs); + /** Set default modes for the channel on creation + */ + void SetDefaultModes(); + prefixlist prefixes; /** Maximum number of bans (cached) diff --git a/include/configreader.h b/include/configreader.h index 70b1bc800..e596e409d 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -494,6 +494,10 @@ class CoreExport ServerConfig : public Extensible */ std::string logpath; + /** Default channel modes + */ + char DefaultModes[MAXBUF]; + /** Custom version string, which if defined can replace the system info in VERSION. */ char CustomVersion[MAXBUF]; @@ -504,7 +508,7 @@ class CoreExport ServerConfig : public Extensible /** Max banlist sizes for channels (the std::string is a glob) */ - std::map maxbans; + std::map maxbans; /** Directory where the inspircd binary resides */ -- cgit v1.2.3