summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 17:36:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 17:36:55 +0000
commitf1b08a52046923cf328d6c6d0640c21c0c360e63 (patch)
tree24529e925de74fef60140b148fd79f91435304cb
parent67e055124dfbbb73b50f90cd1a1eb1be648d9379 (diff)
Fix for bug #315 reported by Nekos, change the exception tags to <securehost> so they dont conflict with <securelist:waittime>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7305 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--docs/inspircd.conf.example6
-rw-r--r--src/modules/m_securelist.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example
index 4c35c3423..9854e4058 100644
--- a/docs/inspircd.conf.example
+++ b/docs/inspircd.conf.example
@@ -1804,9 +1804,9 @@
# Securelist can be harmful to some irc search engines such as #
# netsplit.de and searchirc.com. To prevent securelist blocking these #
# sites from listing, define exception tags as shown below: #
-<securelist exception="*@*.searchirc.org">
-<securelist exception="*@*.netsplit.de">
-<securelist exception="*@echo940.server4you.de">
+<securehost exception="*@*.searchirc.org">
+<securehost exception="*@*.netsplit.de">
+<securehost exception="*@echo940.server4you.de">
# #
# Define the following variable to change how long a user must wait #
# before issuing a LIST. If not defined, defaults to 60 seconds. #
diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp
index 9822f6937..d98870425 100644
--- a/src/modules/m_securelist.cpp
+++ b/src/modules/m_securelist.cpp
@@ -42,8 +42,8 @@ class ModuleSecureList : public Module
{
ConfigReader* MyConf = new ConfigReader(ServerInstance);
allowlist.clear();
- for (int i = 0; i < MyConf->Enumerate("securelist"); i++)
- allowlist.push_back(MyConf->ReadValue("securelist", "exception", i));
+ for (int i = 0; i < MyConf->Enumerate("securehost"); i++)
+ allowlist.push_back(MyConf->ReadValue("securehost", "exception", i));
WaitTime = MyConf->ReadInteger("securelist", "waittime", "60", 0, true);
DELETE(MyConf);
}