summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-11 20:18:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-11 20:18:26 +0000
commit80c3f6c4bdaeb184ff4bf66f0d465d081a1d1263 (patch)
treee2d28060d141cdf71325376d5941725f6252c120 /src
parent32e3caa89ad805e0332e02b12523d9c3ed84a746 (diff)
*annoyance*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5938 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ziplink.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ziplink.cpp b/src/modules/extra/m_ziplink.cpp
index 882a14f56..74f767a9d 100644
--- a/src/modules/extra/m_ziplink.cpp
+++ b/src/modules/extra/m_ziplink.cpp
@@ -69,7 +69,6 @@ class CountedBuffer : public classbase
{
if ((!amount_expected) && (buffer.size() >= 4))
{
- SI->Log(DEBUG,"We dont yet have an expected amount");
/* We have enough to read an int */
char sz[4];
for (int i = 0; i < 4; i++)
@@ -79,7 +78,6 @@ class CountedBuffer : public classbase
}
int* size = (int*)sz;
amount_expected = ntohl(*size);
- SI->Log(DEBUG,"Expected amount is %d", amount_expected);
}
}
@@ -276,6 +274,8 @@ class ModuleZLib : public Module
int size = 0;
while ((size = session->inbuf->GetFrame(compr, CHUNK)) != 0)
{
+ ServerInstance->Log(DEBUG,"Got size %d", size);
+
session->d_stream.next_in = (Bytef*)compr;
session->d_stream.avail_in = 0;
session->d_stream.next_out = (Bytef*)(buffer + total_decomp);
@@ -365,7 +365,7 @@ class ModuleZLib : public Module
memcpy(compr, &x, sizeof(x));
write(fd, compr, session->c_stream.total_out+4);
- ServerInstance->Log(DEBUG,"Sending frame of size %d", x);
+ ServerInstance->Log(DEBUG,"Sending frame of size %d", ntohl(x));
return ocount;
}