summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index ebc542547..b7c353554 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -576,6 +576,12 @@ int16_t ChannelInfo::GetLevel(const Anope::string &priv) const
void ChannelInfo::SetLevel(const Anope::string &priv, int16_t level)
{
+ if (PrivilegeManager::FindPrivilege(priv) == NULL)
+ {
+ Log(LOG_DEBUG) << "Unknown privilege " + priv;
+ return;
+ }
+
this->levels[priv] = level;
}