summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/telnet.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dolmetschctld/telnet.go')
-rw-r--r--cmd/dolmetschctld/telnet.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/dolmetschctld/telnet.go b/cmd/dolmetschctld/telnet.go
index 8ea6a61..7bbf552 100644
--- a/cmd/dolmetschctld/telnet.go
+++ b/cmd/dolmetschctld/telnet.go
@@ -42,11 +42,7 @@ func telnetCmdLang(c *telgo.Client, args []string, sm *StateMachine) bool {
return false
}
- lang := args[1]
- if lang == "none" {
- lang = ""
- }
- if err := sm.SetLanguage(Language(lang)); err != nil {
+ if err := sm.SetLanguage(Language(args[1])); err != nil {
c.Sayln("selecting language failed: %v", err)
}
return false