From 10630982d7f44990589a9363bc65d31dfd991e8e Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 11 Jul 2006 13:30:30 +0000 Subject: Foulups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4328 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 1 + src/modules/m_httpd_stats.cpp | 13 ++----------- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index d0c63d818..dc32c0227 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -109,6 +109,7 @@ class HttpSocket : public InspSocket { HTTPRequest httpr(request_type,uri,&headers,this,this->GetIP()); Event e((char*)&httpr, (Module*)HttpModule, "httpd_url"); + e.Send(); } return false; diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index c02a1a215..ef3bd062c 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -28,15 +28,7 @@ using namespace std; class ModuleHttpStats : public Module { - int port; - std::string host; - std::string bindip; - std::string indexfile; - - FileReader index; - - HttpSocket* http; - + Server* Srv; public: void ReadConfig() @@ -51,7 +43,7 @@ class ModuleHttpStats : public Module void OnEvent(Event* event) { - if (event->GetID() == "httpd_url") + if (event->GetEventID() == "httpd_url") { log(DEBUG,"HTTP URL!"); } @@ -69,7 +61,6 @@ class ModuleHttpStats : public Module virtual ~ModuleHttpStats() { - Srv->DelSocket(http); } virtual Version GetVersion() -- cgit v1.2.3