summaryrefslogtreecommitdiff
path: root/modules/commands/os_jupe.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-25 00:36:04 -0400
committerAdam <Adam@anope.org>2011-09-10 01:58:38 -0400
commitd4db2b84f250b98ec3422f2be9951f567e6dc97e (patch)
tree3c119be0fa5a5f166664858a0cea0c9344e1db7e /modules/commands/os_jupe.cpp
parentbb8e04c83588b6d0595eca463170643a3bd84285 (diff)
Made the IsValidHost checks configurable
Diffstat (limited to 'modules/commands/os_jupe.cpp')
-rw-r--r--modules/commands/os_jupe.cpp2
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."));