mirror of
https://github.com/anope/anope.git
synced 2026-06-30 01:56:38 +02:00
Don't add new levels to existing channels default, screws with stuff when the config is reloaded
This commit is contained in:
@@ -34,8 +34,6 @@ void PrivilegeManager::AddPrivilege(Privilege p, int pos, int def)
|
||||
if (pos < 0 || static_cast<size_t>(pos) > privs.size())
|
||||
pos = privs.size();
|
||||
privs.insert(privs.begin() + pos, p);
|
||||
for (registered_channel_map::const_iterator cit = RegisteredChannelList.begin(), cit_end = RegisteredChannelList.end(); cit != cit_end; ++cit)
|
||||
cit->second->SetLevel(p.name, def);
|
||||
}
|
||||
|
||||
void PrivilegeManager::RemovePrivilege(Privilege &p)
|
||||
|
||||
Reference in New Issue
Block a user