1
0
Fork 0

(svn r1100) -Fix: [Console] 'set company_pw' is now working again (Hackykid)

release/0.4.5
truelight 2004-12-15 17:24:10 +00:00
parent f1b6b1711b
commit b615e854e1
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ DEF_CONSOLE_CMD(ConSet) {
if (strncmp(argv[2], "*", 20) == 0) {
_network_player_info[_local_player].password[0] = '\0';
} else {
strncpy(_network_player_info[_local_player].password, argv[1], 20);
strncpy(_network_player_info[_local_player].password, argv[2], 20);
}
if (!_network_server)
SEND_COMMAND(PACKET_CLIENT_SET_PASSWORD)(_network_player_info[_local_player].password);