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);