diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-09 03:40:20 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-09 03:40:20 +0000 |
commit | a5e2250a2cda1face90c3fe66ece183018d8ac95 (patch) | |
tree | 8330a5b879e05c0cb3f731bf5325649e4516d80c /src | |
parent | c4705deb9fb737708dc26e86508aa49255cf6b82 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chanhistory.cpp | 4 |
1 files 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) |