summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-04 17:34:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-04 17:34:07 +0000
commit90909af6eacd6bc1caeccd6b6acad917f4020fe6 (patch)
tree32a16e4f236b6118999a8baed7a152f2f60759b2 /src/modules
parentc47b1137d15484e1d5cb4c499767ab06c9d4710a (diff)
Fixed bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_filter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 3b687166f..1731da798 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -31,6 +31,7 @@ using namespace std;
class Filter
{
+ public:
std::string reason;
std::string action;
};
@@ -49,7 +50,6 @@ class FilterException : public ModuleException
class ModuleFilter : public Module
{
Server *Srv;
- ConfigReader *Conf, *MyConf;
filter_t filters;
public:
@@ -67,8 +67,6 @@ class ModuleFilter : public Module
virtual ~ModuleFilter()
{
- delete MyConf;
- delete Conf;
}
void Implements(char* List)
@@ -90,7 +88,7 @@ class ModuleFilter : public Module
{
if ((Srv->MatchText(text2,index->first)) || (Srv->MatchText(text,index->first)))
{
- Filter* f = (Filter*)*x->second;
+ Filter* f = (Filter*)index->second;
std::string target = "";
if (target_type == TYPE_USER)
@@ -130,10 +128,10 @@ class ModuleFilter : public Module
{
// reload our config file on rehash - we must destroy and re-allocate the classes
// to call the constructor again and re-read our data.
- Conf = new ConfigReader;
+ ConfigReader* Conf = new ConfigReader;
std::string filterfile = Conf->ReadValue("filter","file",0);
// this automatically re-reads the configuration file into the class
- MyConf = new ConfigReader(filterfile);
+ ConfigReader* MyConf = new ConfigReader(filterfile);
if ((filterfile == "") || (!MyConf->Verify()))
{
// bail if the user forgot to create a config file