diff options
| author | 2013-06-26 17:01:33 -0400 | |
|---|---|---|
| committer | 2013-08-04 16:08:57 +0200 | |
| commit | 8710724b5518ae9858309e548514f76e620a8459 (patch) | |
| tree | cb4efb99580cb8957353848a9dc34d5a83ab172e /src/modules.cpp | |
| parent | Merge pull request #590 from SaberUK/master+module-logging (diff) | |
| download | inspircd++-8710724b5518ae9858309e548514f76e620a8459.tar.gz inspircd++-8710724b5518ae9858309e548514f76e620a8459.tar.bz2 inspircd++-8710724b5518ae9858309e548514f76e620a8459.zip | |
Change the syntax of FOREACH macros to be less dumb.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index ca312c4a5..26e91f876 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -62,7 +62,7 @@ Event::Event(Module* src, const std::string &eventid) : source(src), id(eventid) void Event::Send() { - FOREACH_MOD(I_OnEvent,OnEvent(*this)); + FOREACH_MOD(OnEvent, (*this)); } // These declarations define the behavours of the base class Module (which does nothing at all) @@ -329,7 +329,7 @@ void ModuleManager::DoSafeUnload(Module* mod) // First, notify all modules that a module is about to be unloaded, so in case // they pass execution to the soon to be unloaded module, it will happen now, // i.e. before we unregister the services of the module being unloaded - FOREACH_MOD(I_OnUnloadModule,OnUnloadModule(mod)); + FOREACH_MOD(OnUnloadModule, (mod)); std::map<std::string, Module*>::iterator modfind = Modules.find(mod->ModuleSourceFile); |
