test
This commit is contained in:
parent
34d5d9a10c
commit
0a692e6537
@ -313,15 +313,6 @@ func MQTGCmdWorker(id int, cmds <-chan TGCommand) {
|
||||
func SQLCWMsgWorker(id int, msgs <-chan ChatWarsMessage, objIds chan<- int64) {
|
||||
//log.Printf("SQLCWMsgWorker[" + strconv.Itoa(id) + "] : Starting.")
|
||||
for m := range msgs {
|
||||
if len(m.Callbacks) != 0 {
|
||||
for _, c := range m.Callbacks {
|
||||
log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : %s : %s\n", id, m.ID64, c.Name, string(c.Data))
|
||||
if c.Name == `📯Arena` {
|
||||
log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : Arena spotted\n", id, m.ID64)
|
||||
clientCallback(m.TGUserID64, m.ID64, m.ChatID64, c.Name, c.Data)
|
||||
}
|
||||
}
|
||||
}
|
||||
objId, err := addObjMsg(m)
|
||||
logOnError(err, "SQLCWMsgWorker["+strconv.Itoa(id)+"] : Inserting message.")
|
||||
if err == nil && objId != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user