From d4db2b84f250b98ec3422f2be9951f567e6dc97e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 25 Aug 2011 00:36:04 -0400 Subject: Made the IsValidHost checks configurable --- modules/commands/bs_bot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands/bs_bot.cpp') diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp index 02af6b340..e4f88856f 100644 --- a/modules/commands/bs_bot.cpp +++ b/modules/commands/bs_bot.cpp @@ -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; -- cgit