From 4630ae454ad64eb9abca106a1b2261c2f45e263a Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 5 Dec 2009 22:12:48 +0000 Subject: Added options:mlock in the config so you can set what modes should be locked on new channels git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2690 5417fbe8-f217-4b02-8779-1006273d7864 --- include/configreader.h | 2 ++ include/extern.h | 5 +++++ include/services.h | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index b5b124777..97403b5fa 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -493,6 +493,8 @@ class ServerConfig unsigned NickRegDelay; /* Max number if news items allowed in the list */ unsigned NewsCount; + /* Default mlock modes */ + std::string MLock; /* Services can use email */ bool UseMail; diff --git a/include/extern.h b/include/extern.h index 348489a40..c02ef22e2 100644 --- a/include/extern.h +++ b/include/extern.h @@ -392,6 +392,11 @@ E int str_is_pure_wildcard(const char *str); E uint32 str_is_ip(char *str); E int str_is_cidr(char *str, uint32 * ip, uint32 * mask, char **host); +/**** modes.cpp ****/ +E std::bitset<128> DefMLockOn; +E std::bitset<128> DefMLockOff; +E std::map DefMLockParams; +E void SetDefaultMLock(); /**** modules.c ****/ E void modules_unload_all(bool unload_proto); /* Read warnings near function source */ diff --git a/include/services.h b/include/services.h index 2278d21d4..30bd0e34b 100644 --- a/include/services.h +++ b/include/services.h @@ -559,7 +559,6 @@ struct ircdvars_ { int umode; /* change user modes */ int nickvhost; /* Users vhost sent during NICK */ int chgreal; /* Change RealName */ - std::bitset<128> DefMLock; /* Default mlock modes */ int check_nick_id; /* On nick change check if they could be identified */ int knock_needs_i; /* Check if we needed +i when setting NOKNOCK */ char *chanmodes; /* If the ircd sends CHANMODE in CAPAB this is where we store it */ -- cgit