summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/telnet.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-13 22:51:18 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-13 22:51:28 +0100
commit9f81f0c1b6f24246e2ce60ce9bde5a92e7b7451a (patch)
tree1da382ac1722b96eafd3aa95cdfebcb89bb6091f /cmd/dolmetschctld/telnet.go
parentadded state change subscription to state machine (diff)
move common types to own package
Diffstat (limited to 'cmd/dolmetschctld/telnet.go')
-rw-r--r--cmd/dolmetschctld/telnet.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dolmetschctld/telnet.go b/cmd/dolmetschctld/telnet.go
index a5a4555..5618ebe 100644
--- a/cmd/dolmetschctld/telnet.go
+++ b/cmd/dolmetschctld/telnet.go
@@ -26,6 +26,7 @@ import (
"strconv"
"github.com/spreadspace/telgo"
+ "spreadspace.org/dolmetschctl/pkg/types"
)
type TelnetInterface struct {
@@ -42,7 +43,7 @@ func telnetCmdLang(c *telgo.Client, args []string, sm *StateMachine) bool {
return false
}
- if err := sm.SetLanguage(Language(args[1])); err != nil {
+ if err := sm.SetLanguage(types.Language(args[1])); err != nil {
c.Sayln("selecting language failed: %v", err)
}
return false