summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 13:30:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 13:30:30 +0000
commit10630982d7f44990589a9363bc65d31dfd991e8e (patch)
tree170c67660580ce45e48798835bb7209f63d6aaef /src
parent6fac3ffc3b6f2c3ec72dcda02abb5db73854cdb8 (diff)
Foulups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4328 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_httpd.cpp1
-rw-r--r--src/modules/m_httpd_stats.cpp13
2 files changed, 3 insertions, 11 deletions
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()