diff options
author | Adam <Adam@anope.org> | 2011-11-15 16:30:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-15 16:30:31 -0500 |
commit | 503eb42e404352f5e101f9658749f095a0160591 (patch) | |
tree | 3ea90dcfd651100e7c198a70ae2e718406c0df45 /src | |
parent | 38d90c76e0b3ac486958cb6a79bff66289604f12 (diff) |
Made looking up a level for a nonexistant privilege debugg log a warning, not abort
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 5 |
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; |