diff options
Diffstat (limited to 'modules/ircv3_msgid.cpp')
| -rw-r--r-- | modules/ircv3_msgid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ircv3_msgid.cpp b/modules/ircv3_msgid.cpp index 55f06c01b..15360f16d 100644 --- a/modules/ircv3_msgid.cpp +++ b/modules/ircv3_msgid.cpp @@ -24,7 +24,7 @@ class MsgIdTag final : public CTCTags::TagProvider { public: - MsgIdTag(Module* mod) + MsgIdTag(const WeakModulePtr& mod) : CTCTags::TagProvider(mod) { } @@ -87,8 +87,8 @@ private: public: ModuleMsgId() : Module(VF_VENDOR, "Provides support for the IRCv3 Message IDs specification.") - , CTCTags::EventListener(this) - , tag(this) + , CTCTags::EventListener(weak_from_this()) + , tag(weak_from_this()) { } |
