Quote:
Originally Posted by dimzon541
1) this plugin contains a bug
Code:
if (strcmp(vall, "red") == 0 || strcmp(vall, "blue") == 0 || strcmp(vall, "Spectator") == 0 || strcmp(vall, "spectate") == 0 ||
strcmp(vall, "auto") == 0 || strcmp(vall, "spectatearena") == 0) {
return Plugin_Continue;
}
this means it will make false positive detection on command like
according too many tired admins make a permaban for it's really bad!
|
change the code as show below and it will do case insensitive compares to prevent the problem mentioned above:
Code:
if (strcmp(vall, "red", false) == 0 || strcmp(vall, "blue", false) == 0 || strcmp(vall, "Spectator", false) == 0 || strcmp(vall, "spectate", false) == 0 ||
strcmp(vall, "auto", false) == 0 || strcmp(vall, "spectatearena", false) == 0) {
return Plugin_Continue;
}