diff options
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.")); |