1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 20:33:12 +02:00

Comment out options that users generally shouldn't change.

This commit is contained in:
Sadie Powell
2025-12-17 14:10:10 +00:00
parent 3fe9097439
commit 3e8c5b2685
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -353,8 +353,9 @@ bool IRCDProto::IsHostValid(const Anope::string &host)
if (host.empty() || host.length() > IRCD->MaxHost)
return false;
const Anope::string &vhostdisablebe = Config->GetBlock("networkinfo").Get<const Anope::string>("disallow_start_or_end"),
vhostchars = Config->GetBlock("networkinfo").Get<const Anope::string>("vhost_chars");
const auto &block = Config->GetBlock("networkinfo");
const auto &vhostdisablebe = block.Get<const Anope::string>("disallow_start_or_end", ".-/");
const auto &vhostchars = block.Get<const Anope::string>("vhost_chars", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-/");
if (vhostdisablebe.find_first_of(host[0]) != Anope::string::npos)
return false;