- ServerInstance->Log(DEBUG,"Post connect for mode setting");
- for (int j = 0; j < Conf->Enumerate("connect"); j++)
- {
- std::string hostn = Conf->ReadValue("connect","allow",j);
- if ((match(user->GetIPString(),hostn.c_str(),true)) || (match(user->host,hostn.c_str())))
- {
- ServerInstance->Log(DEBUG,"Found matching connect block '%s'",hostn.c_str());
- std::string ThisModes = Conf->ReadValue("connect","modes",j);
- if (ThisModes != "")
- {
- std::string buf;
- stringstream ss(ThisModes);
-
- vector<string> tokens;
-
- // split ThisUserModes into modes and mode params
- while (ss >> buf)
- tokens.push_back(buf);