diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:34:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:34:03 +0000 |
commit | a3b853420e09d9b7c276bafc67281a74c3f24e6f (patch) | |
tree | a8220b00fff08fbe60ff490c86914c27f7efb593 | |
parent | be2cf7a99fbf3c2fd1139608fe2b3cc5cdbd2daf (diff) |
Ok, hands up who forgot to initialise Srv :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4310 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_http.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); } |