From e24fc0847c61ddb06b5e237eba9453318be06100 Mon Sep 17 00:00:00 2001 From: Alexander Eberle Date: Tue, 23 Mar 2021 15:12:09 -0300 Subject: [PATCH] fixing issue #11 --- src/app/chat/chat.component.ts | 4 ++-- src/app/players/players.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/chat/chat.component.ts b/src/app/chat/chat.component.ts index a1630a4..a306ce5 100644 --- a/src/app/chat/chat.component.ts +++ b/src/app/chat/chat.component.ts @@ -84,14 +84,14 @@ export class ChatComponent implements OnInit { ban(steamID: string, name: string) { this.promptSrv.openPrompt(new PromptData('ban('+name+') Write the reason:')).then(reason => { - this.rustSrv.sendCommand('banid ' + steamID + ' ' + name + ' ' + reason); + this.rustSrv.sendCommand('banid ' + steamID + ' "' + name + '" "' + reason + '"'); this.messageService.add({severity: 'success', summary: 'Banned', detail: this.contextMessage.UserId + ' | ' + this.contextMessage.Username}); }); } kick(steamID: string, name: string) { this.promptSrv.openPrompt(new PromptData('kick('+name+') Write the reason:')).then(reason => { - this.rustSrv.sendCommand('kick ' + steamID + ' ' + reason); + this.rustSrv.sendCommand('kick ' + steamID + ' "' + reason + '"'); this.messageService.add({severity: 'success', summary: 'Banned', detail: this.contextMessage.UserId + ' | ' + this.contextMessage.Username}); }); } diff --git a/src/app/players/players.component.ts b/src/app/players/players.component.ts index df40727..ea44b30 100644 --- a/src/app/players/players.component.ts +++ b/src/app/players/players.component.ts @@ -118,7 +118,7 @@ export class PlayersComponent implements OnInit { ban(steamID: string, name: string) { this.userPopup.opened = false; this.promptSrv.openPrompt(new PromptData('Write the reason:')).then(reason => { - this.rustSrv.sendCommand('banid ' + steamID + ' ' + name + ' ' + reason); + this.rustSrv.sendCommand('banid ' + steamID + ' "' + name + '" "' + reason + '"'); this.messageService.add({severity: 'success', summary: 'Banned', detail: steamID + ' | ' + name}); }); } @@ -126,7 +126,7 @@ export class PlayersComponent implements OnInit { kick(steamID: string) { this.userPopup.opened = false; this.promptSrv.openPrompt(new PromptData('Write the reason:')).then(reason => { - this.rustSrv.sendCommand('kick ' + steamID + ' ' + reason); + this.rustSrv.sendCommand('kick ' + steamID + ' "' + reason + '"'); this.messageService.add({severity: 'success', summary: 'Kicked', detail: steamID + ' | ' + name}); }); }