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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user