--- deliantra/server/server/c_misc.C 2006/12/13 03:28:42 1.22 +++ deliantra/server/server/c_misc.C 2006/12/14 04:30:32 1.23 @@ -1149,7 +1149,7 @@ int command_real_quit (object *op, char *params) { - send_query (&op->contr->socket, CS_QUERY_SINGLECHAR, "Quitting will delete your character.\nAre you sure you want to quit (y/n):"); + send_query (op->contr->socket, CS_QUERY_SINGLECHAR, "Quitting will delete your character.\nAre you sure you want to quit (y/n):"); op->contr->state = ST_CONFIRM_QUIT; return 1; @@ -1185,16 +1185,17 @@ int command_sound (object *op, char *params) { - if (op->contr->socket.sound) + if (op->contr->socket->sound) { - op->contr->socket.sound = 0; + op->contr->socket->sound = 0; new_draw_info (NDI_UNIQUE, 0, op, "Silence is golden..."); } else { - op->contr->socket.sound = 1; + op->contr->socket->sound = 1; new_draw_info (NDI_UNIQUE, 0, op, "The sounds are enabled."); } + return 1; } @@ -1231,9 +1232,9 @@ } new_draw_info (NDI_UNIQUE, 0, op, " "); /* To hide the password better */ - if (checkbanned (op->name, op->contr->socket.host)) + if (checkbanned (op->name, op->contr->socket->host)) { - LOG (llevInfo, "Banned player tried to add: [%s@%s]\n", &op->name, op->contr->socket.host); + LOG (llevInfo, "Banned player tried to add: [%s@%s]\n", &op->name, op->contr->socket->host); new_draw_info (NDI_UNIQUE | NDI_RED, 0, op, "You are not allowed to play."); get_name (op); return;