aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_go2work.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 18:10:59 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 18:10:59 +0200
commit62086a4b656a74dd51e1d29d3e30d3d0a56e93d0 (patch)
tree8c6d7194d266071e56bc0b208b268269dbfb3b7d /src/c_go2work.go
parentok (diff)
downloadgo2work-62086a4b656a74dd51e1d29d3e30d3d0a56e93d0.tar.gz
go2work-62086a4b656a74dd51e1d29d3e30d3d0a56e93d0.tar.bz2
go2work-62086a4b656a74dd51e1d29d3e30d3d0a56e93d0.tar.xz
go2work-62086a4b656a74dd51e1d29d3e30d3d0a56e93d0.tar.zst
go2work-62086a4b656a74dd51e1d29d3e30d3d0a56e93d0.zip
double 'p' fixed
Diffstat (limited to 'src/c_go2work.go')
-rw-r--r--src/c_go2work.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go
index 80b2ccd..956b481 100644
--- a/src/c_go2work.go
+++ b/src/c_go2work.go
@@ -48,7 +48,6 @@
package main
import (
- "fmt"
"log"
"os"
"time"
@@ -100,7 +99,7 @@ func main() {
return
}
if options.use_fortune == true && check_fortune() == false {
- fmt.Println("Beware, fortune is set on but was not found")
+ print_fortune_not_found()
}
curr_t = get_time()
print_time_left(curr_t, dest_t)
@@ -114,8 +113,7 @@ func main() {
if curr_t[HOURS] == dest_t[HOURS] &&
curr_t[MINS] == dest_t[MINS] &&
curr_t[SECS] == dest_t[SECS] {
- // TODO: implement random
- args := append(DEF_PLAYER_OPTIONS(), DEF_FILES()[0])
+ args := append(options.player_options, options.files[0])
has_rang := false
for {
exec_player(