aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_http_client.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-01-17 21:14:26 +0000
committerGravatar brain2007-01-17 21:14:26 +0000
commit76bf72f8c2c5b1524bf20a523fe1cf0d79d29742 (patch)
treee7f29c14b8d0b6c5ea3e76a3c450eff1446abc0a /src/modules/m_http_client.cpp
parentRemove/fix unused variable warning (diff)
downloadinspircd++-76bf72f8c2c5b1524bf20a523fe1cf0d79d29742.tar.gz
inspircd++-76bf72f8c2c5b1524bf20a523fe1cf0d79d29742.tar.bz2
inspircd++-76bf72f8c2c5b1524bf20a523fe1cf0d79d29742.zip
Mass comment removal.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_http_client.cpp')
-rw-r--r--src/modules/m_http_client.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp
index 4b3edca55..b0fcccd47 100644
--- a/src/modules/m_http_client.cpp
+++ b/src/modules/m_http_client.cpp
@@ -231,7 +231,6 @@ void HTTPSocket::Connect(const string &ip)
if (!this->DoConnect())
{
- Server->Log(DEBUG, "Unable to connect HTTPSocket to %s", this->host);
delete this;
}
}
@@ -311,12 +310,9 @@ bool HTTPSocket::OnDataReady()
void HTTPSocket::OnClose()
{
- if (!data.length())
- {
- Server->Log(DEBUG, "HTTP socket closed unexpectedly (no content recieved)");
+ if (data.empty())
return;
- }
- Server->Log(DEBUG, "Got file from HTTP successfully");
+
response->data = data;
response->Send();
delete response;