- /* check cbans in here, and apply as necessary. */
- log(DEBUG,"In OnUserPreJoin cbans.size() == %d",cbans.size());
-
- std::string chname = cname;
-
- for (unsigned int a = 0; a < cbans.size(); a++)
- {
- log(DEBUG,"m_cban: DEBUG: checking %s against %s in OnPreUserJoin()", chname.c_str(), cbans[a].GetName().c_str());
- if (chname == cbans[a].GetName())
- {
- /* matches CBAN */
- WriteOpers("DENY join");
- return 1;
- }
- }
-
- log(DEBUG,"DONE checking, allowed");