From cbc5431d62e3fe9166f18395dce3ddf2af0906d3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Mar 2026 21:32:23 +0000 Subject: Switch modules from reference<> to shared_ptr<> and weak_ptr<>. --- modules/randquote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/randquote.cpp') diff --git a/modules/randquote.cpp b/modules/randquote.cpp index 798854656..33dfba1a1 100644 --- a/modules/randquote.cpp +++ b/modules/randquote.cpp @@ -47,7 +47,7 @@ public: const std::string filestr = conf->getString("file", "quotes", 1); auto file = ServerInstance->Config->ReadFile(filestr); if (!file) - throw ModuleException(this, "Unable to read quotes from " + filestr + ": " + file.error); + throw ModuleException(weak_from_this(), "Unable to read quotes from " + filestr + ": " + file.error); std::vector newquotes; StringSplitter linestream(file.contents, '\n'); -- cgit v1.3.1-10-gc9f91