diff options
| author | 2006-07-11 14:16:27 +0000 | |
|---|---|---|
| committer | 2006-07-11 14:16:27 +0000 | |
| commit | 5a673b22fc50ccc9a47616c8ba8a7fab8faf1d51 (patch) | |
| tree | 419bb595a57aaaa5ec9657427875e65bd968f469 /src/modules/m_httpd_stats.cpp | |
| parent | Compiles now (diff) | |
This works now, m_httpd_stats.so prints 'chickens' on all pages except the index
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4332 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index dd646d18f..3d02c68b5 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -48,12 +48,15 @@ class ModuleHttpStats : public Module { log(DEBUG,"HTTP URL!"); + data.clear(); data << "<html><h1>Chickens</h1></html>"; HTTPRequest* http = (HTTPRequest*)event->GetData(); HTTPDocument response(http->sock, &data, 200); Request req((char*)&response, (Module*)this, event->GetSource()); req.Send(); + + log(DEBUG,"Sent"); } } |
