From 9f81f0c1b6f24246e2ce60ce9bde5a92e7b7451a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Feb 2019 22:51:18 +0100 Subject: move common types to own package --- cmd/dolmetschctld/telnet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/dolmetschctld/telnet.go') 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 -- cgit v1.2.3