X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_shun.cpp;h=7ea16b5b038e8c8fbabe6eb349ed49cba37f84c7;hb=3ccf0065d43db80f31c6404aeac4d65551481508;hp=075b80eb7a47101eebb3860dbc9989cdf83f7512;hpb=ad47ea662698e72ff8f79b03512b1e7fe81bdf53;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 075b80eb7..7ea16b5b0 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -168,7 +168,7 @@ class ModuleShun : public Module { CommandShun cmd; ShunFactory f; - std::set ShunEnabledCommands; + insp::flat_set ShunEnabledCommands; bool NotifyOfShun; bool affectopers; @@ -243,9 +243,7 @@ class ModuleShun : public Module return MOD_RES_PASSTHRU; } - std::set::iterator i = ShunEnabledCommands.find(command); - - if (i == ShunEnabledCommands.end()) + if (!ShunEnabledCommands.count(command)) { if (NotifyOfShun) user->WriteNotice("*** Command " + command + " not processed, as you have been blocked from issuing commands (SHUN)");