mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-06 18:14:23 -08:00
banning bug fixed
This commit is contained in:
@@ -217,7 +217,8 @@ void UserList::showContextMenu(const QPoint &pos, const QModelIndex &index)
|
||||
else if (actionClicked == aBan) {
|
||||
bool ok;
|
||||
int minutes = QInputDialog::getInt(this, tr("Duration"), tr("Please enter the duration of the ban (in minutes).\nEnter 0 for an indefinite ban."), 0, 0, 2147483647, 10, &ok);
|
||||
client->sendCommand(new Command_BanFromServer(userName, minutes));
|
||||
if (ok)
|
||||
client->sendCommand(new Command_BanFromServer(userName, minutes));
|
||||
}
|
||||
|
||||
delete menu;
|
||||
|
||||
Reference in New Issue
Block a user