From 37b3535543b81c3d75c8f62b83d422f0d2fbced0 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 May 2013 19:36:37 -0400 Subject: Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module --- src/modes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modes.cpp') 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; } -- cgit