diff --git a/bot.go b/bot.go
index b2f0664..a4f52a7 100644
--- a/bot.go
+++ b/bot.go
@@ -892,9 +892,17 @@ func botCraftItem(m *ChatWarsMessage, r *regexp.Regexp) {
}
func botUserConfig(m *ChatWarsMessage) {
+ clt, _ := getLockedClient(m.TGUserID64, false)
+ clt.Mux.Unlock()
+ out := fmt.Printf("Config:\n")
+ if clt.Config.InterceptPillage {
+ out = fmt.Printf("%s Pillage : ON (set off)\n", out)
+ } else {
+ out = fmt.Printf("%s Pillage : OFF (set on)\n", out)
+ }
c := TGCommand{
Type: commandReplyMsg,
- Text: "Config:",
+ Text: out,
FromMsgID64: m.ID64,
FromChatID64: m.ChatID64,
}