diff options
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlTelnet.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlTelnet.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlTelnet.go b/src/helsinki.at/rhimportd/ctrlTelnet.go index 5cc578e..3b703dd 100644 --- a/src/helsinki.at/rhimportd/ctrlTelnet.go +++ b/src/helsinki.at/rhimportd/ctrlTelnet.go @@ -151,13 +151,13 @@ func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhim return false } - var ctx *rhimport.ImportContext + var ctx *rhimport.Context if c.UserData == nil { - c.UserData = rhimport.NewImportContext(conf, rddb, "") - ctx = c.UserData.(*rhimport.ImportContext) + c.UserData = rhimport.NewContext(conf, rddb, "") + ctx = c.UserData.(*rhimport.Context) ctx.Trusted = false } else { - ctx = c.UserData.(*rhimport.ImportContext) + ctx = c.UserData.(*rhimport.Context) } switch strings.ToLower(args[1]) { case "username": @@ -209,7 +209,7 @@ func telnetShow(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhi } if c.UserData != nil { - ctx := c.UserData.(*rhimport.ImportContext) + ctx := c.UserData.(*rhimport.Context) c.Sayln(" UserName: %q", ctx.UserName) c.Sayln(" Password: %q", ctx.Password) c.Sayln(" SourceUri: %q", ctx.SourceUri) @@ -240,7 +240,7 @@ func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, rddb *rhim c.Sayln("context is empty please set at least one option") return false } - ctx := c.UserData.(*rhimport.ImportContext) + ctx := c.UserData.(*rhimport.Context) if err := ctx.SanityCheck(); err != nil { c.Sayln("sanity check for import context returned: %s", err) return false |