Improve flood control a bit
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 17 Mar 2009 21:46:18 +0000 (22:46 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 17 Mar 2009 21:46:18 +0000 (22:46 +0100)
commit701f741bf397c07dbcdf3e04c090c6b77b9b17e1
tree18f44d83b7e7330afd64af6411a41736252ab8b0
parent7723c1357b48dd30842d40d4e4237e15dbffad70
Improve flood control a bit

* Increase token refill rate to 2.2 seconds, should be safer
* Empty send queue on disconnect so we don't get flooded off again

This still needs some love; a bunch of very long lines still causes Excess Flood in
Freenode. I suspect we'll have to introduce a byte rate limit in addition to the line
rate limit :/
src/core/corenetwork.cpp
src/core/corenetwork.h