summaryrefslogtreecommitdiff
path: root/src/map/channel.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-26 03:08:01 +0200
committerHaru <haru@dotalux.com>2016-04-26 03:08:01 +0200
commit9b7f03b129503362c6349e0c0f7f42637df32ab5 (patch)
treed1a8dcca01de269ca7a029173819bf8461f6d952 /src/map/channel.c
parentef5d339ba4b7f4ccbc332023367f325c2108bffc (diff)
downloadhercules-9b7f03b129503362c6349e0c0f7f42637df32ab5.tar.gz
hercules-9b7f03b129503362c6349e0c0f7f42637df32ab5.tar.bz2
hercules-9b7f03b129503362c6349e0c0f7f42637df32ab5.tar.xz
hercules-9b7f03b129503362c6349e0c0f7f42637df32ab5.zip
Corrected two accidentally swapped lines of code in the ircbot flood-protection settings
- Follow-up to 5edc982. Mea culpa. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/channel.c')
-rw-r--r--src/map/channel.c4
1 files 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;