summaryrefslogtreecommitdiff
path: root/src/snomasks.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-21 20:54:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-21 20:54:37 +0000
commit28a1967177d055fbbd30b18864209721b8075ce1 (patch)
treec2e6cd0f6d9d68111003d39b120f975fe795f542 /src/snomasks.cpp
parent35a644c0660b9ddb16c86e4d84d0d9809f3c0b31 (diff)
Hack, hack, hack, hack hack. Hack hack. Probably fix snotice loops, though.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9573 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/snomasks.cpp')
-rw-r--r--src/snomasks.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index e6323b50c..2ab473b45 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -40,6 +40,18 @@ void SnomaskManager::FlushSnotices()
}
}
+bool SnomaskManager::SetLocalOnly(char letter, bool local)
+{
+ SnoList::iterator n = SnoMasks.find(letter);
+ if (n != SnoMasks.end())
+ {
+ n->second->LocalOnly = local;
+ return n->second->LocalOnly;
+ }
+
+ throw "snomask not found wtf";
+}
+
bool SnomaskManager::EnableSnomask(char letter, const std::string &type, bool local)
{
if (SnoMasks.find(letter) == SnoMasks.end())