diff options
| author | 2007-03-11 15:53:34 +0000 | |
|---|---|---|
| committer | 2007-03-11 15:53:34 +0000 | |
| commit | 52214a3195d062bc45522e7da58bbe7611d040f6 (patch) | |
| tree | 9648e735b327dab6cf98804bb39ea4770214b8ca /src/users.cpp | |
| parent | Fixed a crash with a malformed server-to-server NICK command, thanks dmb (diff) | |
Added OnBufferFlush, improved m_safelist, no longer works on a timer but works on the writeability state of each user who is listing.
Seems to test fine with 500 reet bots all listing at once. (doesnt lock up the ircd while listing them all any more, either, just lags a small amount)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index b10753b8b..9f54975b4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -734,6 +734,11 @@ void userrec::FlushWriteBuf() { ServerInstance->Log(DEBUG,"Exception in userrec::FlushWriteBuf()"); } + + if (this->sendq.empty()) + { + FOREACH_MOD(I_OnBufferFlushed,OnBufferFlushed(this)); + } } void userrec::SetWriteError(const std::string &error) |
