From 2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Mar 2006 19:39:20 +0000 Subject: Different way of using substr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3679 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index cd4094727..da78840ea 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -283,7 +283,7 @@ bool InspSocket::FlushWriteBuffer() } else { - std::string temp = outbuffer[0].substr(result + 1,outbuffer[0].length() - result - 1); + std::string temp = outbuffer[0].substr(result); outbuffer[0] = temp; } } @@ -404,6 +404,5 @@ void InspSocket::OnClose() { return; } InspSocket::~InspSocket() { - //outbuffer.clear(); - //this->Close(); + this->Close(); } -- cgit v1.3.1-10-gc9f91