summaryrefslogtreecommitdiff
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 94e2efdb8..4ea2e3d85 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -14,9 +14,6 @@
* ---------------------------------------------------
*/
-using namespace std;
-
-#include <stdio.h>
#include "users.h"
#include "channels.h"
#include "modules.h"
@@ -33,13 +30,18 @@ class ModuleDenyChannels : public Module
ConfigReader *Conf;
public:
- ModuleDenyChannels(Server* Me)
- : Module::Module(Me)
+ ModuleDenyChannels(Server* Me) : Module::Module(Me)
{
Srv = Me;
Conf = new ConfigReader;
}
+ virtual void OnRehash(std::string param)
+ {
+ delete Conf;
+ Conf = new ConfigReader;
+ }
+
virtual ~ModuleDenyChannels()
{
delete Conf;
@@ -52,7 +54,7 @@ class ModuleDenyChannels : public Module
void Implements(char* List)
{
- List[I_OnUserPreJoin] = 1;
+ List[I_OnUserPreJoin] = List[I_OnRehash] = 1;
}
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)