X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=fd6a2709a13c4d180e6432138ec2dabb80773c77;hb=acccaa39641500b8a691db4136e6571102a438ed;hp=e0305ea061330120fe1a575a5e0059b6eb93e1ea;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index e0305ea06..fd6a2709a 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -21,7 +21,6 @@ #include "inspircd.h" -#include void SnomaskManager::FlushSnotices() { @@ -132,8 +131,8 @@ void Snomask::Send(char letter, const std::string& desc, const std::string& msg) std::string finalmsg = "*** "; finalmsg.append(log); /* Only opers can receive snotices, so we iterate the oper list */ - const std::list& opers = ServerInstance->Users->all_opers; - for (std::list::const_iterator i = opers.begin(); i != opers.end(); ++i) + const UserManager::OperList& opers = ServerInstance->Users->all_opers; + for (UserManager::OperList::const_iterator i = opers.begin(); i != opers.end(); ++i) { User* user = *i; // IsNoticeMaskSet() returns false for opers who aren't +s, no need to check for it seperately