mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
fixed issue #66: game creators can't kick spectators; unfortunately, this fix is client-side
This commit is contained in:
parent
a1e35ccda5
commit
28b18575f2
3 changed files with 1 additions and 13 deletions
|
|
@ -182,7 +182,7 @@ void UserContextMenu::showContextMenu(const QPoint &pos, const QString &userName
|
|||
client->sendCommand(client->prepareSessionCommand(cmd));
|
||||
} else if (actionClicked == aKick) {
|
||||
Command_KickFromGame cmd;
|
||||
cmd.set_player_id(game->getPlayerIdByName(userName));
|
||||
cmd.set_player_id(playerId);
|
||||
game->sendGameCommand(cmd);
|
||||
} else if (actionClicked == aBan) {
|
||||
Command_GetUserInfo cmd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue