diff options
author | Adam <Adam@anope.org> | 2011-08-25 00:36:04 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-10 01:58:38 -0400 |
commit | d4db2b84f250b98ec3422f2be9951f567e6dc97e (patch) | |
tree | 3c119be0fa5a5f166664858a0cea0c9344e1db7e /modules/commands/os_jupe.cpp | |
parent | bb8e04c83588b6d0595eca463170643a3bd84285 (diff) |
Made the IsValidHost checks configurable
Diffstat (limited to 'modules/commands/os_jupe.cpp')
-rw-r--r-- | modules/commands/os_jupe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp index a689b33e2..b11b975d8 100644 --- a/modules/commands/os_jupe.cpp +++ b/modules/commands/os_jupe.cpp @@ -29,7 +29,7 @@ class CommandOSJupe : public Command const Anope::string &reason = params.size() > 1 ? params[1] : ""; Server *server = Server::Find(jserver); - if (!isValidHost(jserver, 3)) + if (!IsValidHost(jserver) || jserver.find('.') == Anope::string::npos) source.Reply(_("Please use a valid server name when juping")); else if (server && (server == Me || server == Me->GetLinks().front())) source.Reply(_("You can not jupe your services server or your uplink server.")); |