summaryrefslogtreecommitdiff
path: root/src/snomasks.cpp
diff options
context:
space:
mode:
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())