From 97589e5c623bab4caad7d0043cd10ef4191dd44f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 13 Jan 2025 14:38:15 +0000 Subject: [PATCH] Enable activate_on_set by default. --- data/hostserv.example.conf | 2 +- modules/hostserv/hostserv.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/hostserv.example.conf b/data/hostserv.example.conf index 1869c5eb9..4a8354a02 100644 --- a/data/hostserv.example.conf +++ b/data/hostserv.example.conf @@ -79,7 +79,7 @@ module /* * If enabled, vhosts are activated on users immediately when they are set. */ - activate_on_set = false + activate_on_set = yes /* * If enabled, vhosts are activated on users immediately when they log out of an operator account. diff --git a/modules/hostserv/hostserv.cpp b/modules/hostserv/hostserv.cpp index 82273f4e5..fb8b3491c 100644 --- a/modules/hostserv/hostserv.cpp +++ b/modules/hostserv/hostserv.cpp @@ -95,7 +95,7 @@ public: void OnSetVHost(NickAlias *na) override { - if (Config->GetModule(this)->Get("activate_on_set")) + if (Config->GetModule(this)->Get("activate_on_set", "yes")) { User *u = User::Find(na->nick); @@ -120,7 +120,7 @@ public: void OnDeleteVHost(NickAlias *na) override { - if (Config->GetModule(this)->Get("activate_on_set")) + if (Config->GetModule(this)->Get("activate_on_set", "yes")) { User *u = User::Find(na->nick);