summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-19 01:54:13 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-19 01:54:13 +0000
commit8d247130d4df32072209b9a8bd3455803bf0f6e6 (patch)
treebfbf0c22c2457ec392a8f4cdf572e5b9af96d807 /src/modules/hs_request.c
parent89e05fb880380bb2fb40729c8b5237c2c68a2e54 (diff)
Fixed a crash when using commands if HostServ is disabled
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2453 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index c2b9d77bf..6b064cdba 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -693,7 +693,7 @@ class HSRequest : public Module
EventReturn OnPreCommand(User *u, const std::string &service, const ci::string &command, const std::vector<ci::string> &params)
{
- if (service == s_HostServ)
+ if (s_HostServ && service == s_HostServ)
{
if (command == "LIST")
{