git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5004
e03df62e-2008-0410-955e-
edbf42e46eb7
mode_users[modectr++] = usr;
charlcat(modestring,mh->GetModeChar(),MAXBUF);
}
+ else
+ {
+ this->Instance->WriteOpers("ERROR: We received a user with an unknown prefix '%c'. Closed connection to avoid a desync.",mh->GetPrefix());
+ this->WriteLine(std::string("ERROR :What?! You sent me a mode prefix i cant handle ('")+mh->GetModeChar()+"'). Closing connection to avoid desync.");
+ return false;
+ }
usr++;
permissions++;
}