From 80c3f6c4bdaeb184ff4bf66f0d465d081a1d1263 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 11 Dec 2006 20:18:26 +0000 Subject: *annoyance* git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5938 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ziplink.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_ziplink.cpp') 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; } -- cgit v1.2.3