- if (chan->GetPrefixValue(user) != OP_VALUE)
- return MOD_RES_PASSTHRU; // They're not opped, so we don't exempt them
- while(denystream.GetToken(current))
- if (!strcasecmp(restriction, current.c_str())) return MOD_RES_PASSTHRU; // This mode is set to never allow exemptions in the config
- while(allowstream.GetToken(current))
- if (!strcasecmp(restriction, current.c_str())) return MOD_RES_ALLOW; // This mode is set to always allow exemptions in the config
-
+ while (defaultstream.GetToken(current))
+ {
+ std::string::size_type pos = current.find(':');
+ if (pos == std::string::npos)
+ continue;
+ if (current.substr(pos+1) == restriction)
+ minmode = current[0];
+ }