From 6ae6ad176e69199b0eca06083fcd0c1539bba15b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 6 Jul 2024 02:36:27 +0100 Subject: Unregister extbans when the providing module is unloaded. --- include/modules/extban.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/modules') diff --git a/include/modules/extban.h b/include/modules/extban.h index 562c57a83..427e638e3 100644 --- a/include/modules/extban.h +++ b/include/modules/extban.h @@ -206,6 +206,11 @@ protected: { } + ~Base() override + { + SetActive(false); + } + public: /** Canonicalises a value for this extban. * @param text The value to canonicalize. -- cgit v1.3.1-10-gc9f91