diff options
Diffstat (limited to 'modules/botmode.cpp')
| -rw-r--r-- | modules/botmode.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/botmode.cpp b/modules/botmode.cpp index c56907603..f9d39e10d 100644 --- a/modules/botmode.cpp +++ b/modules/botmode.cpp @@ -34,7 +34,7 @@ private: SimpleUserMode& botmode; public: - BotTag(Module* mod, SimpleUserMode& bm) + BotTag(const WeakModulePtr& mod, SimpleUserMode& bm) : CTCTags::TagProvider(mod) , botmode(bm) { @@ -62,11 +62,11 @@ private: public: ModuleBotMode() : Module(VF_VENDOR, "Adds user mode B (bot) which marks users with it set as bots.") - , ISupport::EventListener(this) - , Who::EventListener(this) - , Whois::EventListener(this) - , bm(this, "bot", 'B') - , tag(this, bm) + , ISupport::EventListener(weak_from_this()) + , Who::EventListener(weak_from_this()) + , Whois::EventListener(weak_from_this()) + , bm(weak_from_this(), "bot", 'B') + , tag(weak_from_this(), bm) { } |
