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:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user