test
This commit is contained in:
parent
2f2441cd9e
commit
12f793b59e
4
msg.go
4
msg.go
@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
//"log"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -174,7 +174,7 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW
|
||||
cwm.Quest = strings.ToLower(r.ReplaceAllString(m.Text, "${Place}"))
|
||||
i, err := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Time}"), 10, 64)
|
||||
if err != nil {
|
||||
cwm.Duration = i * time.Minute
|
||||
cwm.Duration = time.Duration(i) * time.Minute
|
||||
} else {
|
||||
cwm.Duration = 0 * time.Minute
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user