summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:40:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:40:31 +0000
commit74ba5a43d6fb5ab013f3485dea592c1e0b408a51 (patch)
tree19e0155854384fc0f92080640a35ff28d67e0b96 /src
parent31958fcac3198685291b072743f11300d27251af (diff)
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')
-rw-r--r--src/modules/m_httpd_stats.cpp5
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();