From 9f71270e27cd3f3442bf0be8580bfb622f3842fa Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 27 Jul 2014 23:13:14 +0200 Subject: Fixed set-maxdim --- earthporn.go | 1 + main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/earthporn.go b/earthporn.go index ad7576c..29ff208 100644 --- a/earthporn.go +++ b/earthporn.go @@ -122,6 +122,7 @@ func setMaxdimCmd(params []string) error { if err != nil { return fmt.Errorf("1st parameter of set-maxdim could not be parsed as a number: %s", err) } + maxdim = int(newmaxdim) return nil } diff --git a/main.go b/main.go index 27a5ab6..e37670f 100644 --- a/main.go +++ b/main.go @@ -97,6 +97,7 @@ func initCmds() { RegisterCommand("add-link", addLinkCmd) RegisterCommand("set-earthporn-savepath", setSavepathCmd) RegisterCommand("set-weather-place", setPlaceCmd) + RegisterCommand("set-maxdim", setMaxdimCmd) } func runConf() { -- cgit v1.2.3-70-g09d2