From c7a6c1da381bfc330a94d37d452083407173b192 Mon Sep 17 00:00:00 2001 From: Distortions81 Date: Mon, 20 Jan 2025 03:37:35 -0700 Subject: [PATCH] change mod update message for no players online --- modupdate/modUpdate.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modupdate/modUpdate.go b/modupdate/modUpdate.go index 09fd027b..ba484af9 100755 --- a/modupdate/modUpdate.go +++ b/modupdate/modUpdate.go @@ -88,7 +88,11 @@ func UpdateMods(doReport bool) { } } if buf != "" { - fact.CMS(cfg.Local.Channel.ChatChannel, "Some Factorio mods were updated, and will take effect on the next reboot (when server is empty)") + if fact.NumPlayers > 0 { + fact.CMS(cfg.Local.Channel.ChatChannel, "Factorio mods were updated, and will take effect on the next reboot (when server is empty)") + } else { + fact.CMS(cfg.Local.Channel.ChatChannel, "Factorio mods were updated, rebooting.") + } fact.QueueFactReboot = true } else if doReport { fact.CMS(cfg.Local.Channel.ChatChannel, "All game mods are up-to-date.")