summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:00:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:00:54 +0000
commit1ce6fe7525c8213682d6cfca2acd9420d4e72f36 (patch)
tree7dd9c7797cd63a3d2485f36c5acc6a7bf11ba8ed /src/modules/m_httpd_stats.cpp
parent10630982d7f44990589a9363bc65d31dfd991e8e (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.cpp7
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();
}
}