]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
Write out the permchannels database on a timer, not on every mode change
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index bdc257511b0feb69ceacfbfcb1caa5a657aaa8ac..c25dcb6033ccce79cdbf0fd10613d662537c9fbf 100644 (file)
@@ -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)