mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev
This commit is contained in:
@@ -1103,7 +1103,7 @@ function doRandomChat() {
|
||||
}
|
||||
|
||||
async function doMesCut(_, text) {
|
||||
|
||||
console.debug(`was asked to cut message id #${text}`)
|
||||
//reject invalid args or no args
|
||||
if (text && isNaN(text) || !text) {
|
||||
toastr.error(`Must enter a single number only, non-number characters disallowed.`)
|
||||
@@ -1111,7 +1111,7 @@ async function doMesCut(_, text) {
|
||||
}
|
||||
|
||||
//reject attempts to delete firstmes
|
||||
if (text === 0) {
|
||||
if (text === '0') {
|
||||
toastr.error('Cannot delete the First Message')
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user