From 74ba5a43d6fb5ab013f3485dea592c1e0b408a51 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 11 Jul 2006 14:40:31 +0000 Subject: Stop the chickens reproducing :X git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4335 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd_stats.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 << "

Chickens

"; HTTPRequest* http = (HTTPRequest*)event->GetData(); -- cgit v1.2.3