diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 19:12:05 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 19:12:05 +0000 |
commit | c0f8576bbd4cfa5b4f0c13cad90c3b516e0efb43 (patch) | |
tree | df3f254c8d802b4cb373ec92f078f6b3950674ae /src/snomasks.cpp | |
parent | b9e99da4dafd836e995970216835cefe3716a01a (diff) |
auto-set +s when +n is set (as +n requires +s) - allow +n to be 'set twice' allowing for snomask change without removal of +ns
Add default snomask chars
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5063 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/snomasks.cpp')
-rw-r--r-- | src/snomasks.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 650403a53..e465b2ec8 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -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) */ +} + |