mirror of
https://github.com/anope/anope.git
synced 2026-06-29 22:26:38 +02:00
Enable activate_on_set by default.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user