diff options
| author | 2006-03-11 19:39:20 +0000 | |
|---|---|---|
| committer | 2006-03-11 19:39:20 +0000 | |
| commit | 2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3 (patch) | |
| tree | 6cdce4193c5615d5e237553960db14830245564d | |
| parent | Deque doing some reallllly odd stuff (diff) | |
| download | inspircd++-2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3.tar.gz inspircd++-2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3.tar.bz2 inspircd++-2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3.zip | |
Different way of using substr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3679 e03df62e-2008-0410-955e-edbf42e46eb7
| -rw-r--r-- | src/socket.cpp | 5 | ||||
| -rwxr-xr-x | src/svn-rev.sh | 2 |
2 files changed, 3 insertions, 4 deletions
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(); } diff --git a/src/svn-rev.sh b/src/svn-rev.sh index e5d94e209..04d9d21e0 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3676 +echo 3678 |
