From 2c99eac31a68560849f575845dc87a6825439eef Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sat, 3 Sep 2022 10:54:54 -0700 Subject: [PATCH] Minor fix --- chat/ads/ad-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat/ads/ad-manager.ts b/chat/ads/ad-manager.ts index 1a1d290..f6c2611 100644 --- a/chat/ads/ad-manager.ts +++ b/chat/ads/ad-manager.ts @@ -110,7 +110,7 @@ export class AdManager { this.nextPostDue = new Date(Math.max( Date.now() + nextInMs, - chanConv.settings.adSettings.lastAdTimestamp + (core.connection.vars.lfrp_flood * 1000) + (chanConv.settings.adSettings.lastAdTimestamp || 0) + (core.connection.vars.lfrp_flood * 1000) )); // tslint:disable-next-line: no-unnecessary-type-assertion @@ -172,7 +172,7 @@ export class AdManager { this.nextPostDue = new Date(Math.max( Date.now() + initialWait, - this.conversation.settings.adSettings.lastAdTimestamp + (core.connection.vars.lfrp_flood * 1000) + (this.conversation.settings.adSettings.lastAdTimestamp || 0) + (core.connection.vars.lfrp_flood * 1000) )); this.expireDue = new Date(Date.now() + AdManager.POSTING_PERIOD);