From 9b7f03b129503362c6349e0c0f7f42637df32ab5 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 26 Apr 2016 03:08:01 +0200 Subject: Corrected two accidentally swapped lines of code in the ircbot flood-protection settings - Follow-up to 5edc982. Mea culpa. Signed-off-by: Haru --- src/map/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/channel.c b/src/map/channel.c index f36388bca..ee8242b23 100644 --- a/src/map/channel.c +++ b/src/map/channel.c @@ -696,13 +696,13 @@ void read_channels_config(void) if (irc_autojoin) channel->config->irc_autojoin = true; - libconfig->setting_lookup_int(settings, "irc_flood_protection_burst", &irc_flood_protection_burst); + libconfig->setting_lookup_bool(settings, "irc_flood_protection_enabled", &irc_flood_protection_enabled); if (irc_flood_protection_enabled) { ircbot->flood_protection_enabled = true; - libconfig->setting_lookup_bool(settings, "irc_flood_protection_enabled", &irc_flood_protection_enabled); libconfig->setting_lookup_int(settings, "irc_flood_protection_rate", &irc_flood_protection_rate); + libconfig->setting_lookup_int(settings, "irc_flood_protection_burst", &irc_flood_protection_burst); if (irc_flood_protection_rate > 0) ircbot->flood_protection_rate = irc_flood_protection_rate; -- cgit v1.2.3-60-g2f50