1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 02:16:37 +02:00

Made looking up a level for a nonexistant privilege debugg log a warning, not abort

This commit is contained in:
Adam
2011-11-15 16:30:31 -05:00
parent 38d90c76e0
commit 503eb42e40
+4 -1
View File
@@ -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;