Minor
This commit is contained in:
parent
4b07e29417
commit
6da3d59585
|
@ -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;
|
||||
|
|
|
@ -131,7 +131,7 @@ async function toggleDictionary(lang: string): Promise<void> {
|
|||
newLangs = activeLangs;
|
||||
}
|
||||
|
||||
settings.spellcheckLang = newLangs;
|
||||
settings.spellcheckLang = _.uniq(newLangs);
|
||||
|
||||
setGeneralSettings(settings);
|
||||
|
||||
|
|
Loading…
Reference in New Issue