Skip to content

Commit

Permalink
timer: Save timers to disk after creating a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
zorael committed Dec 23, 2023
1 parent 979232a commit 5e3df55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/kameloso/plugins/timer.d
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ void handleNewTimer(
timer.fiber = createTimerFiber(plugin, event.channel, timer.name);
plugin.timersByChannel[event.channel][timer.name] = timer;
channel.timerPointers[timer.name] = &plugin.timersByChannel[event.channel][timer.name];
saveTimers(plugin);

// Start monitor if not already running
if (plugin.monitorInstanceID == TimerPlugin.emptyMonitorMagicNumber) startTimerMonitor(plugin);
Expand Down

0 comments on commit 5e3df55

Please sign in to comment.