From aad1518ceb0ae6ff180c2bf286c83407e0921b13 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Feb 2019 17:32:23 +0100 Subject: added web handler for language --- cmd/dolmetschctld/statemachine.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/dolmetschctld/statemachine.go') diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go index 7082460..9ae5ff3 100644 --- a/cmd/dolmetschctld/statemachine.go +++ b/cmd/dolmetschctld/statemachine.go @@ -178,6 +178,9 @@ func (sm *StateMachine) initMixer() { // the "current language" is what is currently spoken on stage func (sm *StateMachine) setLanguage(l Language) error { + if l == "none" { + l = "" + } if l != "" { if _, exists := sm.languages[l]; !exists { return fmt.Errorf("language '%s' does not exist", l) -- cgit v1.2.3