From e7b56d18e6b9a40fc97ea3b310190ed3f935b10d Mon Sep 17 00:00:00 2001 From: MDMCK10 <21245760+MDMCK10@users.noreply.github.com> Date: Sat, 11 Feb 2023 17:07:34 +0100 Subject: [PATCH] Fix crash caused by new changes --- src/User.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/User.ts b/src/User.ts index 0341e40..c100fda 100644 --- a/src/User.ts +++ b/src/User.ts @@ -99,7 +99,7 @@ export class User { // Prevent the user from taking turns or chatting, in case the ban command takes a while this.IP.muted = true; //@ts-ignore - var cmd = this.Config.collabvm.bancmd.replace(/\$IP/g, this.IP).replace(/\$NAME/g, this.username); + var cmd = this.Config.collabvm.bancmd.replace(/\$IP/g, this.IP.address).replace(/\$NAME/g, this.username); await execaCommand(cmd); this.kick(); } @@ -114,4 +114,4 @@ export enum Rank { Unregistered = 0, Admin = 2, Moderator = 3, -} \ No newline at end of file +}