Fix url building in bonjour.go

configurable-file-paths
Robert Gerus 2015-11-21 12:51:43 +01:00
parent 0d055fdb49
commit 7dee9b445f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func bonjour(output chan irc.Message, msg irc.Message) {
return
}
img, err := httpGetXpath("http://www.bonjourmadame.fr/page/"+string(rand.Intn(2370)+1), "//div[@class='photo post']//img/@src")
img, err := httpGetXpath("http://www.bonjourmadame.fr/page/"+fmt.Sprintf("%d", rand.Intn(2370)+1), "//div[@class='photo post']//img/@src")
if err != nil {
rmsg = fmt.Sprint("error:", err)
} else {