]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/event.h
Fix a bunch of really obvious unnecessary includes.
[user/henk/code/inspircd.git] / include / event.h
index 7e8e64c7dc31012b2892f1320fa6a304b8ca6c57..baa24d7d08798b9f5c9a370dac3bae2af1f64510 100644 (file)
@@ -20,6 +20,8 @@
 
 #pragma once
 
+#include "base.h"
+
 namespace Events
 {
        class ModuleEventListener;
@@ -184,7 +186,7 @@ inline bool Events::ModuleEventProvider::ElementComp::operator()(Events::ModuleE
  * FOREACH_MOD_CUSTOM(accountevprov, AccountEventListener, OnAccountChange, MOD_RESULT, (user, newaccount))
  */
 #define FOREACH_MOD_CUSTOM(prov, listenerclass, func, params) do { \
-       if (!(prov).GetModule() || (prov).GetModule()->dying) \
+       if (!(prov).GetModule() || !(prov).GetModule()->dying) \
        { \
                const ::Events::ModuleEventProvider::SubscriberList& _handlers = (prov).GetSubscribers(); \
                for (::Events::ModuleEventProvider::SubscriberList::const_iterator _i = _handlers.begin(); _i != _handlers.end(); ++_i) \
@@ -206,7 +208,7 @@ inline bool Events::ModuleEventProvider::ElementComp::operator()(Events::ModuleE
  */
 #define FIRST_MOD_RESULT_CUSTOM(prov, listenerclass, func, result, params) do { \
        result = MOD_RES_PASSTHRU; \
-       if (!(prov).GetModule() || (prov).GetModule()->dying) \
+       if (!(prov).GetModule() || !(prov).GetModule()->dying) \
        { \
                const ::Events::ModuleEventProvider::SubscriberList& _handlers = (prov).GetSubscribers(); \
                for (::Events::ModuleEventProvider::SubscriberList::const_iterator _i = _handlers.begin(); _i != _handlers.end(); ++_i) \