* Nick collision.
*/
int collide = sock->DoCollision(iter->second, age_t, params[5], params[6], params[0]);
- ServerInstance->Logs->Log("m_spanningtree",LOG_DEBUG,"*** Collision on %s, collide=%d", params[2].c_str(), collide);
+ ServerInstance->Logs->Log("m_spanningtree", LOG_DEBUG, "*** Collision on %s, collide=%d", params[2].c_str(), collide);
if (collide != 1)
{
unsigned int paramptr = 9;
- // Accept more '+' chars, for now
- std::string::size_type pos = modestr.find_first_not_of('+');
- for (std::string::const_iterator v = modestr.begin()+pos; v != modestr.end(); ++v)
+ for (std::string::const_iterator v = modestr.begin(); v != modestr.end(); ++v)
{
+ // Accept more '+' chars, for now
+ if (*v == '+')
+ continue;
+
/* For each mode thats set, find the mode handler and set it on the new user */
ModeHandler* mh = ServerInstance->Modes->FindMode(*v, MODETYPE_USER);
if (!mh)
}
else
mh->OnModeChange(_new, _new, NULL, empty, true);
- _new->SetMode(*v, true);
+ _new->SetMode(mh, true);
}
_new->SetClientIP(params[6].c_str());