1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 06:26:38 +02:00

Made the IsValidHost checks configurable

This commit is contained in:
Adam
2011-08-25 00:36:04 -04:00
parent bb8e04c835
commit d4db2b84f2
9 changed files with 90 additions and 129 deletions
+3 -3
View File
@@ -69,8 +69,8 @@ class CommandBSBot : public Command
return;
}
/* Check the host is valid re RFC 2812 */
if (!isValidHost(host, 3))
/* Check the host is valid */
if (!IsValidHost(host))
{
source.Reply(_("Bot Hosts may only contain valid host characters."));
return;
@@ -186,7 +186,7 @@ class CommandBSBot : public Command
return;
}
if (!host.empty() && !isValidHost(host, 3))
if (!host.empty() && !IsValidHost(host))
{
source.Reply(_("Bot Hosts may only contain valid host characters."));
return;