summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-01-13 14:38:15 +0000
committerSadie Powell <sadie@witchery.services>2025-01-13 14:38:15 +0000
commit97589e5c623bab4caad7d0043cd10ef4191dd44f (patch)
tree0d9c75a3c1f8d51eb51ee1506c098df6085758c3
parent098074ba8b18d53a4620464795e81aa052c285f9 (diff)
Enable activate_on_set by default.
-rw-r--r--data/hostserv.example.conf2
-rw-r--r--modules/hostserv/hostserv.cpp4
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<bool>("activate_on_set"))
+ if (Config->GetModule(this)->Get<bool>("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<bool>("activate_on_set"))
+ if (Config->GetModule(this)->Get<bool>("activate_on_set", "yes"))
{
User *u = User::Find(na->nick);