From 3153a8d9501a5d11c7dcb6259cafa682abc2a6c1 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 25 Jun 2022 16:11:54 +0200 Subject: [PATCH] format modlogs pt4 --- src/core/adminfunctions.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/adminfunctions.js b/src/core/adminfunctions.js index 05a0603..854540f 100644 --- a/src/core/adminfunctions.js +++ b/src/core/adminfunctions.js @@ -155,10 +155,10 @@ export async function executeImageAction( ); // eslint-disable-next-line max-len - if (logger) logger(`loaded image wth ${pxlCount} pixels to #${canvas.ident},${x},${y} (${x}_${y} - ${x + info.width - 1}_${y + info.height - 1})`); + if (logger) logger(`loaded image wth *${pxlCount}*pxls to #${canvas.ident},${x},${y} (+*${x}*+\\_+*${y}*+ - +*${x + info.width - 1}*+\\_+*${y + info.height - 1}*+)`); return [ 200, - `Successfully loaded image wth ${pxlCount} pixels to ${x}/${y}`, + `Successfully loaded image wth ${pxlCount}pxls to ${x}/${y}`, ]; } catch { return [400, 'Can not read image file']; @@ -207,7 +207,7 @@ export async function executeCleanerAction( return [403, error]; } // eslint-disable-next-line max-len - const report = `set Canvas Cleaner to ${action} from #${canvas.ident},${x},${y} to #${canvas.ident},${u},${v}`; + const report = `set Canvas Cleaner to *"${action}"* from #${canvas.ident},${x},${y} to #${canvas.ident},${u},${v}`; if (logger) logger(report); return [200, report]; } @@ -269,9 +269,9 @@ export async function executeProtAction( logger( (protect) // eslint-disable-next-line max-len - ? `protected ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})` + ? `protected *${width}*x*${height}* area at #${canvas.ident},${x},${y} with *${pxlCount}*pxls (+*${x}*+\\_+*${y}*+ - +*${u}*+\\_+*${v}*+)` // eslint-disable-next-line max-len - : `unprotect ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, + : `unprotect *${width}*x*${height}* area at #${canvas.ident},${x},${y} with *${pxlCount}*pxls (+*${x}*+\\_+*${y}*+ - +*${u}*+\\_+*${v}*+)`, ); } return [ @@ -342,7 +342,7 @@ export async function executeRollback( if (logger) { logger( // eslint-disable-next-line max-len - `rolled back to ${date} for ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, + `rolled back to *${date}* for *${width}*x*${height}* area at #${canvas.ident},${x},${y} with *${pxlCount}*pxls (+*${x}*+\\_+*${y}*+ - +*${u}*+\\_+*${v}*+)`, ); } return [