X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=fd6a2709a13c4d180e6432138ec2dabb80773c77;hb=7492344e64491cea6bbb5c9354dceb804bb908ac;hp=fa8e5ab600a26f89ee4fe2dbc32030c46efc72a4;hpb=c265641c0a9a9b0a4686e1ea313876c16b4700ad;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index fa8e5ab60..fd6a2709a 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -21,7 +21,6 @@ #include "inspircd.h" -#include void SnomaskManager::FlushSnotices() { @@ -47,7 +46,7 @@ void SnomaskManager::WriteGlobalSno(char letter, const std::string& text) { WriteToSnoMask(letter, text); letter = toupper(letter); - ServerInstance->PI->SendSNONotice(std::string(1, letter), text); + ServerInstance->PI->SendSNONotice(letter, text); } void SnomaskManager::WriteToSnoMask(char letter, const char* text, ...) @@ -115,7 +114,7 @@ void Snomask::Flush() std::string desc = GetDescription(LastLetter); std::string msg = "(last message repeated " + ConvToStr(Count) + " times)"; - FOREACH_MOD(I_OnSendSnotice, OnSendSnotice(LastLetter, desc, msg)); + FOREACH_MOD(OnSendSnotice, (LastLetter, desc, msg)); Snomask::Send(LastLetter, desc, msg); } @@ -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