1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 13:56:38 +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
+3 -3
View File
@@ -140,7 +140,7 @@ ChannelMode::~ChannelMode()
bool ChannelMode::CanSet(User *u) const
{
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnCanSet, OnCanSet(u, this));
FOREACH_RESULT(OnCanSet, MOD_RESULT, (u, this));
return MOD_RESULT != EVENT_STOP;
}
@@ -350,7 +350,7 @@ bool ModeManager::AddUserMode(UserMode *um)
UserModesByName[um->name] = um;
FOREACH_MOD(I_OnUserModeAdd, OnUserModeAdd(um));
FOREACH_MOD(OnUserModeAdd, (um));
return true;
}
@@ -384,7 +384,7 @@ bool ModeManager::AddChannelMode(ChannelMode *cm)
ChannelModesByName[cm->name] = cm;
FOREACH_MOD(I_OnChannelModeAdd, OnChannelModeAdd(cm));
FOREACH_MOD(OnChannelModeAdd, (cm));
return true;
}