aboutsummaryrefslogtreecommitdiff
path: root/modules/geoban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/geoban.cpp
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/geoban.cpp')
-rw-r--r--modules/geoban.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/geoban.cpp b/modules/geoban.cpp
index ff64bcf6c..7072a208e 100644
--- a/modules/geoban.cpp
+++ b/modules/geoban.cpp
@@ -31,7 +31,7 @@ private:
Geolocation::API& geoapi;
public:
- CountryExtBan(Module* Creator, Geolocation::API& api)
+ CountryExtBan(const WeakModulePtr& Creator, Geolocation::API& api)
: ExtBan::MatchingBase(Creator, "country", 'G')
, geoapi(api)
{
@@ -59,10 +59,10 @@ private:
public:
ModuleGeoBan()
: Module(VF_VENDOR | VF_OPTCOMMON, "Adds extended ban G: (country) which matches against two letter country codes.")
- , Who::MatchEventListener(this)
- , Whois::EventListener(this)
- , geoapi(this)
- , extban(this, geoapi)
+ , Who::MatchEventListener(weak_from_this())
+ , Whois::EventListener(weak_from_this())
+ , geoapi(weak_from_this())
+ , extban(weak_from_this(), geoapi)
{
}