X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fconfigreader.cpp;h=58a932981a402a8213c7386c30a9fd083e9372da;hb=d04db003df83ddfdc2b5b9ae0e360335d88ae769;hp=4643c761353fd0c17129084be2d3e1ba7aa0bdf2;hpb=c7de80233a0cc52b30ad91ff2de9ecc2abdfba38;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/configreader.cpp b/src/configreader.cpp index 4643c7613..58a932981 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -492,17 +492,6 @@ void ServerConfig::Fill() throw CoreException("Invalid chanmode " + std::string(1, *p) + " was found."); DisabledCModes.set(*p - 'A'); } - - std::string v = security->getString("announceinvites"); - - if (v == "ops") - AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_OPS; - else if (v == "all") - AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_ALL; - else if (v == "dynamic") - AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_DYNAMIC; - else - AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_NONE; } // WARNING: it is not safe to use most of the codebase in this function, as it