diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 17:32:23 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 17:32:23 +0100 |
commit | aad1518ceb0ae6ff180c2bf286c83407e0921b13 (patch) | |
tree | 5686b40db4d71c569d6e68af32cede15dedb268b /cmd/dolmetschctld/statemachine.go | |
parent | added minimal web interface (diff) |
added web handler for language
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r-- | cmd/dolmetschctld/statemachine.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |