aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-03-29 12:38:41 +0200
committerGravatar Attila Molnar2016-03-29 12:38:41 +0200
commite91c675b094760407d7c00bbec17795f30978c1e (patch)
tree4a98d1be527a22805b8cda7ca597b7feaffaf79c /src/modules/m_check.cpp
parentcore_info Deduplicate code by inheriting some commands from ServerTargetCommand (diff)
downloadinspircd++-e91c675b094760407d7c00bbec17795f30978c1e.tar.gz
inspircd++-e91c675b094760407d7c00bbec17795f30978c1e.tar.bz2
inspircd++-e91c675b094760407d7c00bbec17795f30978c1e.zip
Ensure server names passed to some commands are really server names
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index ef9507aa1..17eb9d9c5 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -301,7 +301,7 @@ class CommandCheck : public Command
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
{
- if (parameters.size() > 1)
+ if ((parameters.size() > 1) && (parameters[1].find('.') != std::string::npos))
return ROUTE_OPT_UCAST(parameters[1]);
return ROUTE_LOCALONLY;
}