commit dba2cddc463082ca028617df93e6726253e0866f
parent 963213132dd923d0e7dbd47ea6f20373cdef343b
Author: Peter Powell <petpow@saberuk.com>
Date: Thu, 24 Jan 2019 18:03:12 +0000
Fix overriding <options:exemptchanops> with the exemptchanops mode.
Closes #1558.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/modules/exemption.h b/include/modules/exemption.h
@@ -41,8 +41,8 @@ class CheckExemption::EventListener
: public Events::ModuleEventListener
{
protected:
- EventListener(Module* mod)
- : ModuleEventListener(mod, "event/exemption")
+ EventListener(Module* mod, unsigned int eventprio = DefaultPriority)
+ : ModuleEventListener(mod, "event/exemption", eventprio)
{
}
diff --git a/src/coremods/core_channel/core_channel.cpp b/src/coremods/core_channel/core_channel.cpp
@@ -122,7 +122,7 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
public:
CoreModChannel()
- : CheckExemption::EventListener(this)
+ : CheckExemption::EventListener(this, UINT_MAX)
, invapi(this)
, cmdinvite(this, invapi)
, cmdjoin(this)