summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-07-27 23:13:14 +0200
committerKevin Chabowski <kevin@kch42.de>2014-07-27 23:13:14 +0200
commit9f71270e27cd3f3442bf0be8580bfb622f3842fa (patch)
treee9c2dfc2b40fa13c6864236bc8536bcbaa594cd4
parentbfa8c2a9d76834c4ae434210ed03caf8ea07c5cb (diff)
downloadstartpage-9f71270e27cd3f3442bf0be8580bfb622f3842fa.tar.gz
startpage-9f71270e27cd3f3442bf0be8580bfb622f3842fa.tar.bz2
startpage-9f71270e27cd3f3442bf0be8580bfb622f3842fa.zip
Fixed set-maxdim
-rw-r--r--earthporn.go1
-rw-r--r--main.go1
2 files changed, 2 insertions, 0 deletions
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() {