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:48:28 +0000 (22:48 +0100)
commita71514b17a3e533454d3accfc367b48f6358aa18
treebf819679738e67bf2c26a5cfb5269f806d060760
parentd90224875e753400a50cf3f52f0e07de906e8bdd
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