From e172f50d4f0581908002644825c5f325e239a34b Mon Sep 17 00:00:00 2001 From: Cohee Date: Sun, 30 Jul 2023 21:35:36 +0300 Subject: [PATCH] Allow /cut 0 --- public/scripts/power-user.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 1bb265904..133db46e8 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -1224,12 +1224,6 @@ async function doMesCut(_, text) { return } - //reject attempts to delete firstmes - if (text === '0') { - toastr.error('Cannot delete the First Message') - return - } - let mesIDToCut = Number(text).toFixed(0) let mesToCut = $("#chat").find(`.mes[mesid=${mesIDToCut}]`)