]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/snomasks.cpp
auto-set +s when +n is set (as +n requires +s) - allow +n to be 'set twice' allowing...
[user/henk/code/inspircd.git] / src / snomasks.cpp
index 650403a53414f652d027c13ff51bc5e649dbdafa..e465b2ec80d063658edfc9ae0efef2fa048bed31 100644 (file)
@@ -27,6 +27,7 @@
 SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance)
 {
        SnoMasks.clear();
+       this->SetupDefaults();
 }
 
 SnomaskManager::~SnomaskManager()
@@ -90,3 +91,17 @@ 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('n',"NICK");                /* Nickchange 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) */
+}
+