From 39d2c7c6dfdc88097e5e06d63f7d906e28054469 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 7 Apr 2006 23:16:45 +0000 Subject: Make WriteServ use WriteServ_NoFormat, code duplication = bad >:/ Change some weirdness using a stringstream for a simple append. Force a flush of all opers' write buffers after they get the oper notice about a /DIE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3842 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index be24db697..d6ee1d3bd 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -404,9 +404,8 @@ void userrec::AddWriteBuf(const std::string &data) WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); return; } - std::stringstream stream; - stream << sendq << data; - sendq = stream.str(); + + sendq.append(data); } // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it) -- cgit v1.3.1-10-gc9f91