diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-29 22:41:50 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-29 22:41:50 +0000 |
commit | 15314fa27a558a93f7aa7c1e32c6e4e9b4b4628b (patch) | |
tree | fe0f3c1dc3976108b8ea635b5364d0c8a6a8075f /src | |
parent | f5aee622aa273a991e253a9f5fb5210f7e2b2a63 (diff) |
eggy: be happy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2979 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chgident.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_denychans.cpp | 14 |
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) |