fix config
This commit is contained in:
parent
326d16a49c
commit
6759afee8a
3
bot.go
3
bot.go
@ -894,7 +894,7 @@ func botCraftItem(m *ChatWarsMessage, r *regexp.Regexp) {
|
|||||||
func botUserConfig(m *ChatWarsMessage) {
|
func botUserConfig(m *ChatWarsMessage) {
|
||||||
clt, _ := getLockedClient(m.TGUserID64, false)
|
clt, _ := getLockedClient(m.TGUserID64, false)
|
||||||
clt.Mux.Unlock()
|
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 {
|
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)
|
out = fmt.Sprintf("%s Pillage : ON (<a href=\"https://t.me/share/url?url=/config_pillage_off\">set off</a>)\n", out)
|
||||||
} else {
|
} else {
|
||||||
@ -905,6 +905,7 @@ func botUserConfig(m *ChatWarsMessage) {
|
|||||||
Text: out,
|
Text: out,
|
||||||
FromMsgID64: m.ID64,
|
FromMsgID64: m.ID64,
|
||||||
FromChatID64: m.ChatID64,
|
FromChatID64: m.ChatID64,
|
||||||
|
ParseMode: cmdParseModeHTML,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user