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:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user