1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 07:03:13 +02:00

Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module

This commit is contained in:
Adam
2013-05-27 19:36:37 -04:00
parent c21e8d9204
commit 37b3535543
120 changed files with 440 additions and 672 deletions
-9
View File
@@ -296,15 +296,6 @@ class CSSeen : public Module
public:
CSSeen(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), seeninfo_type("SeenInfo", SeenInfo::Unserialize), commandseen(this), commandosseen(this)
{
Implementation eventlist[] = { I_OnExpireTick,
I_OnUserConnect,
I_OnUserNickChange,
I_OnUserQuit,
I_OnJoinChannel,
I_OnPartChannel,
I_OnPreUserKicked };
ModuleManager::Attach(eventlist, this, sizeof(eventlist) / sizeof(Implementation));
}
void OnExpireTick() anope_override