aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_autotrigger.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_autotrigger.go')
-rw-r--r--internal/game/cmd_autotrigger.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/game/cmd_autotrigger.go b/internal/game/cmd_autotrigger.go
index e2ecd1a..acfa76e 100644
--- a/internal/game/cmd_autotrigger.go
+++ b/internal/game/cmd_autotrigger.go
@@ -27,13 +27,14 @@ func (g *Game) doAutotrigger(sess *net.Session, input string) {
return
}
- if strings.ToLower(input) == "off" {
+ lower := strings.ToLower(input)
+ if lower == "off" || lower == "none" {
p.AutotriggerMod = ""
sess.WriteLine("Autotrigger disabled.")
return
}
- mod := FindMod(strings.ToLower(input))
+ mod := FindModForPlayer(lower, p.Level(player.Science))
if mod == nil {
sess.WriteLine("Unknown mod.")
return