diff options
| author | 2006-07-11 14:00:54 +0000 | |
|---|---|---|
| committer | 2006-07-11 14:00:54 +0000 | |
| commit | 1ce6fe7525c8213682d6cfca2acd9420d4e72f36 (patch) | |
| tree | 7dd9c7797cd63a3d2485f36c5acc6a7bf11ba8ed /src/modules/m_httpd_stats.cpp | |
| parent | Foulups (diff) | |
Error code stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4329 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index ef3bd062c..957c9abfd 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -29,6 +29,7 @@ using namespace std; class ModuleHttpStats : public Module { Server* Srv; + std::stringstream data; public: void ReadConfig() @@ -46,6 +47,12 @@ class ModuleHttpStats : public Module if (event->GetEventID() == "httpd_url") { log(DEBUG,"HTTP URL!"); + + data << "<html><h1>Chickens</h1></html>"; + + HTTPDocument response(&data, 200, event->GetData()->sock); + Request req(&response, this, event->GetSource()); + req.Send(); } } |
