]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/snomasks.cpp
Made SANICK not collide the user (theres no need to in the new 1.1 now we have return...
[user/henk/code/inspircd.git] / src / snomasks.cpp
index 650403a53414f652d027c13ff51bc5e649dbdafa..c67afcdc5da730a84dd74dd2e3a6bfa3c31a39fc 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <string>
-#include <vector>
 #include <stdarg.h>
 #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 */
+}
+