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_cgiirc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cgiirc.cpp') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index bb27badd2..bfd5b5290 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -145,7 +145,7 @@ public: ModuleCgiIRC(InspIRCd* Me) : Module(Me) { - OnRehash(NULL,""); + OnRehash(NULL); mycommand = new CommandWebirc(Me, Hosts, NotifyOpers); ServerInstance->AddCommand(mycommand); @@ -159,7 +159,7 @@ public: ServerInstance->Modules->SetPriority(this, I_OnUserConnect, PRIORITY_FIRST); } - virtual void OnRehash(User* user, const std::string ¶meter) + virtual void OnRehash(User* user) { ConfigReader Conf(ServerInstance); Hosts.clear(); -- cgit v1.3.1-10-gc9f91