ms back to assault.cubers.net and abuse-autokick message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5155 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -2020,7 +2020,7 @@ void senddisconnectedscores(int cn)
|
||||
|
||||
const char *disc_reason(int reason)
|
||||
{
|
||||
static const char *disc_reasons[] = { "normal", "end of packet", "client num", "kicked by server operator", "banned by server operator", "tag type", "connection refused due to ban", "wrong password", "failed admin login", "server FULL", "server mastermode is \"private\"", "auto kick - did your score drop below the threshold?", "auto ban - did your score drop below the threshold?", "duplicate connection", "inappropriate nickname", "overflow" };
|
||||
static const char *disc_reasons[] = { "normal", "end of packet", "client num", "kicked by server operator", "banned by server operator", "tag type", "connection refused due to ban", "wrong password", "failed admin login", "server FULL", "server mastermode is \"private\"", "auto kick - did your score drop below the threshold?", "auto ban - did your score drop below the threshold?", "duplicate connection", "inappropriate nickname", "overflow", "abuse - did you spammed too much?" };
|
||||
return reason >= 0 && (size_t)reason < sizeof(disc_reasons)/sizeof(disc_reasons[0]) ? disc_reasons[reason] : "unknown";
|
||||
}
|
||||
|
||||
@@ -2430,7 +2430,7 @@ void process(ENetPacket *packet, int sender, int chan)
|
||||
cl->name, team_string(cl->team), text, canspeech ? "SPAM detected" : "Forbidden speech");
|
||||
if (canspeech) {
|
||||
sendservmsg("\f3please do not spam", sender);
|
||||
if ( cl->spamcount > SPAMMAXREPEAT + 2 ) disconnect_client(cl->clientnum, DISC_AUTOKICK);
|
||||
if ( cl->spamcount > SPAMMAXREPEAT + 2 ) disconnect_client(cl->clientnum, DISC_ABUSE);
|
||||
}
|
||||
else {
|
||||
sendservmsg("\f3watch your language!", sender);
|
||||
@@ -2470,7 +2470,7 @@ void process(ENetPacket *packet, int sender, int chan)
|
||||
cl->name, text, canspeech ? "SPAM detected" : "Forbidden speech");
|
||||
if (canspeech) {
|
||||
sendservmsg("\f3please do not spam", sender);
|
||||
if ( cl->spamcount > SPAMMAXREPEAT + 2 ) disconnect_client(cl->clientnum, DISC_AUTOKICK);
|
||||
if ( cl->spamcount > SPAMMAXREPEAT + 2 ) disconnect_client(cl->clientnum, DISC_ABUSE);
|
||||
}
|
||||
else {
|
||||
sendservmsg("\f3watch your language!", sender);
|
||||
|
||||
Reference in New Issue
Block a user