Rename opermodes parameter to "automodes" to resolve conflict with the migrated <class:modes>

This commit is contained in:
Daniel De Graaf 2010-03-12 15:21:07 -06:00
parent eb3f5de4dd
commit bca90c347a

View File

@ -43,7 +43,7 @@ class ModuleModesOnOper : public Module
// whenever a user opers, go through the oper types, find their <type:modes>,
// and if they have one apply their modes. The mode string can contain +modes
// to add modes to the user or -modes to take modes from the user.
std::string ThisOpersModes = user->oper->getConfig("modes");
std::string ThisOpersModes = user->oper->getConfig("automodes");
if (!ThisOpersModes.empty())
{
ApplyModes(user, ThisOpersModes);