From a3b853420e09d9b7c276bafc67281a74c3f24e6f Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 21:34:03 +0000 Subject: Ok, hands up who forgot to initialise Srv :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4310 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_http.cpp') diff --git a/src/modules/m_http.cpp b/src/modules/m_http.cpp index 6cb95fa55..dbd1fbecd 100644 --- a/src/modules/m_http.cpp +++ b/src/modules/m_http.cpp @@ -113,11 +113,15 @@ class ModuleHttp : public Module void CreateListener() { http = new HttpSocket(this->bindip, this->port, true, 0, &index); - Srv->AddSocket(http); + if ((http) && (http->GetState() == I_LISTENING)) + { + Srv->AddSocket(http); + } } ModuleHttp(Server* Me) : Module::Module(Me) { + Srv = Me; ReadConfig(); CreateListener(); } -- cgit v1.2.3