This commit is contained in:
Mr. Stallion 2022-09-03 11:47:11 -07:00
parent 4b07e29417
commit 6da3d59585
2 changed files with 7 additions and 2 deletions

View File

@ -165,7 +165,12 @@ export class AdManager {
start(): void {
const chanConv = (<Conversation.ChannelConversation>this.conversation);
const initialWait = Math.max(Math.random() * AdManager.START_VARIANCE, (chanConv.nextAd - Date.now()) * 1.1);
const initialWait = Math.max(
Math.random() * AdManager.START_VARIANCE,
(chanConv.nextAd - Date.now()) * 1.1,
(this.conversation.settings.adSettings.lastAdTimestamp || 0) + (core.connection.vars.lfrp_flood * 1000)
);
this.adIndex = 0;
this.active = true;

View File

@ -131,7 +131,7 @@ async function toggleDictionary(lang: string): Promise<void> {
newLangs = activeLangs;
}
settings.spellcheckLang = newLangs;
settings.spellcheckLang = _.uniq(newLangs);
setGeneralSettings(settings);