This commit is contained in:
shoopea 2019-06-25 18:45:51 +08:00
parent e6773bf850
commit 12694416a9

14
obj.go
View File

@ -615,12 +615,14 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
func getObjItemID(c string, n string) int64 {
i := silentGetObjItemID(c, n)
if i == 0 {
w := TGCommand{
Type: commandSendMsg,
Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n),
ToUserID64: cfg.Bot.Admin,
}
TGCmdQueue <- w
/*
w := TGCommand{
Type: commandSendMsg,
Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n),
ToUserID64: cfg.Bot.Admin,
}
TGCmdQueue <- w
*/
}
return i
}