diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:38:41 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:38:41 +0200 |
commit | e91c675b094760407d7c00bbec17795f30978c1e (patch) | |
tree | 4a98d1be527a22805b8cda7ca597b7feaffaf79c /src/modules/m_opermotd.cpp | |
parent | 60ecb2157db64da797d0f505ce905e3a96a61d1a (diff) |
Ensure server names passed to some commands are really server names
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r-- | src/modules/m_opermotd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 010f4ae58..f6cb5853c 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -43,7 +43,7 @@ class CommandOpermotd : public Command RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { - if (!parameters.empty()) + if ((!parameters.empty()) && (parameters[0].find('.') != std::string::npos)) return ROUTE_OPT_UCAST(parameters[0]); return ROUTE_LOCALONLY; } |