Keep old clients from removing message rate delay
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 22 Sep 2016 01:24:48 +0000 (20:24 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 13 Oct 2016 20:08:16 +0000 (22:08 +0200)
commit4d0f5192217c70f1676707b918266b33c3e88ec7
tree2e36a6615148c261d4b0504c205d7d64d2394fdd
parent3867471c05de4c463373c6c4d1c414871c14cdc8
Keep old clients from removing message rate delay

Add a guard against zero message delay in setMessageRateDelay,
following the error-checking of setMessageRateBurstSize.  This blocks
old clients from setting message rate delay to 0 seconds for newly-
created networks, improperly overriding the default of 2.2 seconds.

This affects creating a network in an old client, switching to a new
client, then enabling custom rate-limits.

The supported method for removing rate limits by setting Unlimited to
true still works.

Resolves GH-252.
src/common/network.cpp