From 42d5b9571eff06b0c33093dc9118c29f9603fd2b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 1 Jan 2007 20:53:20 +0000 Subject: Fix to allow for OnRehash to know what user initiated the rehash git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcaps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_blockcaps.cpp') diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index b67c496f4..058336fb3 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -59,7 +59,7 @@ public: ModuleBlockCAPS(InspIRCd* Me) : Module::Module(Me) { - OnRehash(""); + OnRehash(NULL,""); bc = new BlockCaps(ServerInstance); if (!ServerInstance->AddMode(bc, 'P')) throw ModuleException("Could not add new modes!"); @@ -70,7 +70,7 @@ public: List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnRehash] = 1; } - virtual void OnRehash(const std::string ¶m) + virtual void OnRehash(userrec* user, const std::string ¶m) { ReadConf(); } -- cgit v1.3.1-10-gc9f91