Less error logging for zifferjs
This commit is contained in:
@ -723,7 +723,6 @@ export class UserAPI {
|
||||
const key = id === "" ? this.generateCacheKey(input, options) : zid;
|
||||
|
||||
const validSyntax = typeof input === "string" && !this.invalidPatterns[input]
|
||||
if(!validSyntax) this.app.api.log(`Invalid syntax: ${input}`);
|
||||
|
||||
let player;
|
||||
let replace = false;
|
||||
@ -750,6 +749,10 @@ export class UserAPI {
|
||||
|
||||
if(player) {
|
||||
|
||||
if(player.atTheBeginning()) {
|
||||
if(!validSyntax) this.app.api.log(`Invalid syntax: ${input}`);
|
||||
}
|
||||
|
||||
if (player.ziffers.generator && player.ziffers.generatorDone) {
|
||||
this.removePatternFromCache(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user