summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-27 12:02:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-27 12:02:10 +0000
commit4a50237d63ae019fbfaf0901ef59a772e66080df (patch)
treef4282f212cb5eb805919e8f12ae52f0e07e53421 /include
parent140b01ba4927e7d6b85504ff740ae443b0f2df2a (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/channels.h4
-rw-r--r--include/configreader.h6
2 files changed, 9 insertions, 1 deletions
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<std::string,int> maxbans;
+ std::map<std::string, int> maxbans;
/** Directory where the inspircd binary resides
*/