Fixed sm_sql_addadmin reading the immunity field as a password (bug 3395, r=pred).
This commit is contained in:
parent
2fc0520895
commit
dcccfbd26a
@ -828,9 +828,9 @@ public Action:Command_AddAdmin(client, args)
|
||||
|
||||
decl String:password[32];
|
||||
decl String:safe_password[80];
|
||||
if (args > 4)
|
||||
if (args >= 6)
|
||||
{
|
||||
GetCmdArg(5, password, sizeof(password));
|
||||
GetCmdArg(6, password, sizeof(password));
|
||||
SQL_EscapeString(db, password, safe_password, sizeof(safe_password));
|
||||
} else {
|
||||
safe_password[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user