summaryrefslogtreecommitdiff
path: root/src/snomasks.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-17 15:54:33 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-17 15:54:33 +0000
commit4426a2fc448f332e42a7e6ff778e5047bb588c98 (patch)
tree0a8dcaaa5b9243d77062bccada51e0d4b8d73475 /src/snomasks.cpp
parent94afde43b086f092bf8128d76d418cb63840e8eb (diff)
Fix.. snomask O is already taken (ffs) so use A instead
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/snomasks.cpp')
-rw-r--r--src/snomasks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index 9dec803aa..43a7b802b 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -95,7 +95,7 @@ void SnomaskManager::SetupDefaults()
this->EnableSnomask('K',"REMOTEKILL"); /* Remote kill notices */
this->EnableSnomask('l',"LINK"); /* Link notices */
this->EnableSnomask('o',"OPER"); /* Oper up/down notices */
- this->EnableSnomask('O',"ALLOPERS"); /* formerly WriteOpers() - generic notices to all opers */
+ this->EnableSnomask('A',"ANNOUNCENENT"); /* formerly WriteOpers() - generic notices to all opers */
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 */
@@ -128,7 +128,7 @@ void Snomask::Flush()
for (std::list<User*>::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++)
{
User* a = *i;
- if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsModeSet('n') && a->IsNoticeMaskSet(MySnomask))
+ if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsModeSet('n') && a->IsNoticeMaskSet(MySnomask) && !a->quitting)
{
a->WriteServ("NOTICE %s :*** %s: %s", a->nick, this->Description.c_str(), this->LastMessage.c_str());
if (Count > 1)