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

2
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 { func getObjItemID(c string, n string) int64 {
i := silentGetObjItemID(c, n) i := silentGetObjItemID(c, n)
if i == 0 { if i == 0 {
/*
w := TGCommand{ w := TGCommand{
Type: commandSendMsg, Type: commandSendMsg,
Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n), Text: fmt.Sprintf("Object unknown : %s - %s\n", c, n),
ToUserID64: cfg.Bot.Admin, ToUserID64: cfg.Bot.Admin,
} }
TGCmdQueue <- w TGCmdQueue <- w
*/
} }
return i return i
} }