X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=c67afcdc5da730a84dd74dd2e3a6bfa3c31a39fc;hb=dc7927e17cffb2ee3c50ef9f037ed873d378f679;hp=650403a53414f652d027c13ff51bc5e649dbdafa;hpb=b9e99da4dafd836e995970216835cefe3716a01a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 650403a53..c67afcdc5 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -14,19 +14,15 @@ * --------------------------------------------------- */ -#include -#include #include #include "configreader.h" #include "users.h" -#include "modules.h" -#include "commands.h" -#include "xline.h" #include "snomasks.h" SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance) { SnoMasks.clear(); + this->SetupDefaults(); } SnomaskManager::~SnomaskManager() @@ -90,3 +86,18 @@ bool SnomaskManager::IsEnabled(char letter) return (SnoMasks.find(letter) != SnoMasks.end()); } +void SnomaskManager::SetupDefaults() +{ + this->EnableSnomask('c',"CONNECT"); /* Local connect notices */ + this->EnableSnomask('C',"REMOTECONNECT"); /* Remote connect notices */ + this->EnableSnomask('q',"QUIT"); /* Local quit notices */ + this->EnableSnomask('Q',"REMOTEQUIT"); /* Remote quit notices */ + this->EnableSnomask('k',"KILL"); /* Kill notices */ + this->EnableSnomask('l',"LINK"); /* Link notices */ + this->EnableSnomask('o',"OPER"); /* Oper up/down notices */ + this->EnableSnomask('d',"DEBUG"); /* Debug notices */ + this->EnableSnomask('x',"XLINE"); /* Xline notice (g/z/q/k/e) */ + this->EnableSnomask('t',"STATS"); /* Local or remote stats request */ + this->EnableSnomask('f',"FLOOD"); /* Flooding notices */ +} +