fix config

This commit is contained in:
shoopea 2020-02-10 12:20:29 +08:00
parent 326d16a49c
commit 6759afee8a

3
bot.go
View File

@ -894,7 +894,7 @@ func botCraftItem(m *ChatWarsMessage, r *regexp.Regexp) {
func botUserConfig(m *ChatWarsMessage) {
clt, _ := getLockedClient(m.TGUserID64, false)
clt.Mux.Unlock()
out := fmt.Sprintf("Config:\n")
out := fmt.Sprintf("Config for %s (running build %s):\n", clt.Login, clt.Version)
if clt.Config.InterceptPillage {
out = fmt.Sprintf("%s Pillage : ON (<a href=\"https://t.me/share/url?url=/config_pillage_off\">set off</a>)\n", out)
} else {
@ -905,6 +905,7 @@ func botUserConfig(m *ChatWarsMessage) {
Text: out,
FromMsgID64: m.ID64,
FromChatID64: m.ChatID64,
ParseMode: cmdParseModeHTML,
}
TGCmdQueue <- c
return