summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index a7a2e2c22..660233d2b 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -1032,7 +1032,10 @@ void ChannelInfo::RestoreTopic()
int16_t ChannelInfo::GetLevel(const Anope::string &priv)
{
if (PrivilegeManager::FindPrivilege(priv) == NULL)
- throw CoreException("Unknown privilege " + priv);
+ {
+ Log(LOG_DEBUG) << "Unknown privilege " + priv;
+ return ACCESS_INVALID;
+ }
if (this->levels.count(priv) == 0)
this->levels[priv] = 0;