aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-05-13 14:42:19 +0100
committerGravatar Sadie Powell2020-05-13 14:42:19 +0100
commit5b9ffbab42e080c24c5fca3d0220653171b80f1e (patch)
treed49766400e4a23f0151ef709d10b7d1348250a96 /src
parentAdd ConfigParser::getEnum for parsing enum values. (diff)
downloadinspircd++-5b9ffbab42e080c24c5fca3d0220653171b80f1e.tar.gz
inspircd++-5b9ffbab42e080c24c5fca3d0220653171b80f1e.tar.bz2
inspircd++-5b9ffbab42e080c24c5fca3d0220653171b80f1e.zip
Fix parsing <security:announceinvites>.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_channel/core_channel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_channel/core_channel.cpp b/src/coremods/core_channel/core_channel.cpp
index 237902b30..43e555f79 100644
--- a/src/coremods/core_channel/core_channel.cpp
+++ b/src/coremods/core_channel/core_channel.cpp
@@ -179,8 +179,8 @@ class CoreModChannel
ConfigTag* securitytag = ServerInstance->Config->ConfValue("security");
Invite::AnnounceState newannouncestate = securitytag->getEnum("announceinvites", Invite::ANNOUNCE_DYNAMIC, {
- { "all", Invite::ANNOUNCE_NONE },
- { "dynamic", Invite::ANNOUNCE_ALL },
+ { "all", Invite::ANNOUNCE_ALL },
+ { "dynamic", Invite::ANNOUNCE_DYNAMIC },
{ "none", Invite::ANNOUNCE_NONE },
{ "ops", Invite::ANNOUNCE_OPS },
});