diff options
| author | 2006-04-07 23:16:45 +0000 | |
|---|---|---|
| committer | 2006-04-07 23:16:45 +0000 | |
| commit | 39d2c7c6dfdc88097e5e06d63f7d906e28054469 (patch) | |
| tree | 18b97cf3de181db85991baaf2e7236cd4558b497 /src/users.cpp | |
| parent | Slight optimisation to config reader, looks nicer even if it's not faster. (diff) | |
| download | inspircd++-39d2c7c6dfdc88097e5e06d63f7d906e28054469.tar.gz inspircd++-39d2c7c6dfdc88097e5e06d63f7d906e28054469.tar.bz2 inspircd++-39d2c7c6dfdc88097e5e06d63f7d906e28054469.zip | |
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
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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) |
