From 0da6b3a13def40e8fd002b9fc60f955467f6372d Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 24 May 2009 02:53:45 +0000 Subject: OnRehash changes: split to multiple hooks to clarify use and prevent explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nationalchars.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_nationalchars.cpp') diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index 72f233715..f27b54a52 100755 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -240,7 +240,7 @@ class ModuleNationalChars : public Module Implementation eventlist[] = { I_OnRehash, I_On005Numeric }; ServerInstance->Modules->Attach(eventlist, this, 2); - OnRehash(NULL, ""); + OnRehash(NULL); } virtual void On005Numeric(std::string &output) @@ -250,7 +250,7 @@ class ModuleNationalChars : public Module SearchAndReplace(output, std::string("CASEMAPPING=rfc1459"), tmp); } - virtual void OnRehash(User* user, const std::string ¶meter) + virtual void OnRehash(User* user) { ConfigReader* conf = new ConfigReader(ServerInstance); charset = conf->ReadValue("nationalchars", "file", 0); -- cgit v1.2.3