From 15314fa27a558a93f7aa7c1e32c6e4e9b4b4628b Mon Sep 17 00:00:00 2001 From: om Date: Sun, 29 Jan 2006 22:41:50 +0000 Subject: eggy: be happy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2979 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chgident.cpp | 2 +- src/modules/m_denychans.cpp | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'src') 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 #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) -- cgit v1.2.3