summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chgident.cpp2
-rw-r--r--src/modules/m_denychans.cpp14
2 files changed, 9 insertions, 7 deletions
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp
index 89ae02a08..52bfd237c 100644
--- a/src/modules/m_chgident.cpp
+++ b/src/modules/m_chgident.cpp
@@ -31,7 +31,7 @@ class cmd_chgident : public command_t
return;
}
- WriteOpers("%s used CHGIDENT to change %s's host from '%s' to '%s'", user->nick, dest->nick, dest->ident, parameters[1]);
+ WriteOpers("%s used CHGIDENT to change %s's ident from '%s' to '%s'", user->nick, dest->nick, dest->ident, parameters[1]);
strlcpy(dest->ident, parameters[1], IDENTMAX+2);
}
else
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)