summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-27 19:36:37 -0400
committerAdam <Adam@anope.org>2013-05-27 19:36:37 -0400
commit37b3535543b81c3d75c8f62b83d422f0d2fbced0 (patch)
tree8a062415c91d352e4b6bd180cbf238d1f159802d /src/modes.cpp
parentc21e8d9204f9b671177a63d4daa21957bffc1d9f (diff)
Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 2e9a49f09..8eab97480 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -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;
}