diff options
| author | 2006-07-11 14:40:31 +0000 | |
|---|---|---|
| committer | 2006-07-11 14:40:31 +0000 | |
| commit | 74ba5a43d6fb5ab013f3485dea592c1e0b408a51 (patch) | |
| tree | 19e0155854384fc0f92080640a35ff28d67e0b96 /src/modules/m_httpd_stats.cpp | |
| parent | Make var const (diff) | |
| download | inspircd++-74ba5a43d6fb5ab013f3485dea592c1e0b408a51.tar.gz inspircd++-74ba5a43d6fb5ab013f3485dea592c1e0b408a51.tar.bz2 inspircd++-74ba5a43d6fb5ab013f3485dea592c1e0b408a51.zip | |
Stop the chickens reproducing :X
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4335 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 894aeed5b..a421ed366 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -29,7 +29,7 @@ using namespace std; class ModuleHttpStats : public Module { Server* Srv; - std::stringstream data; + public: void ReadConfig() @@ -44,11 +44,12 @@ class ModuleHttpStats : public Module void OnEvent(Event* event) { + std::stringstream data(""); + if (event->GetEventID() == "httpd_url") { log(DEBUG,"HTTP URL!"); - data.clear(); data << "<html><h1>Chickens</h1></html>"; HTTPRequest* http = (HTTPRequest*)event->GetData(); |
