From a5e2250a2cda1face90c3fe66ece183018d8ac95 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 9 Feb 2010 03:40:20 +0000 Subject: Move chanhistory to PostJoin hook While irssi is currently able to show the lines sent prior to join, it is better for this module to work on all clients without modification. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12407 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanhistory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index bdc257511..c25dcb603 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -68,7 +68,7 @@ class ModuleChanHistory : public Module if (!ServerInstance->Modes->AddMode(&m)) throw ModuleException("Could not add new modes!"); - Implementation eventlist[] = { I_OnUserJoin, I_OnUserMessage }; + Implementation eventlist[] = { I_OnPostJoin, I_OnUserMessage }; ServerInstance->Modules->Attach(eventlist, this, 2); } @@ -95,7 +95,7 @@ class ModuleChanHistory : public Module } } - void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except_list) + void OnPostJoin(Membership* memb) { HistoryList* list = m.ext.get(memb->chan); if (!list) -- cgit v1.2.3