fix
This commit is contained in:
parent
a23c2c341e
commit
326d16a49c
6
bot.go
6
bot.go
@ -894,11 +894,11 @@ 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.Printf("Config:\n")
|
out := fmt.Sprintf("Config:\n")
|
||||||
if clt.Config.InterceptPillage {
|
if clt.Config.InterceptPillage {
|
||||||
out = fmt.Printf("%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 {
|
||||||
out = fmt.Printf("%s Pillage : OFF (<a href=\"https://t.me/share/url?url=/config_pillage_on\">set on</a>)\n", out)
|
out = fmt.Sprintf("%s Pillage : OFF (<a href=\"https://t.me/share/url?url=/config_pillage_on\">set on</a>)\n", out)
|
||||||
}
|
}
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
|
Loading…
Reference in New Issue
Block a user