diff options
Diffstat (limited to 'process.go')
-rw-r--r-- | process.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -484,6 +484,17 @@ func (cc *ClientConn) process(pkt mt.Pkt) { case *mt.ToSrvCltInfo: // Store for any future hops (need to send it to the new server). cc.cltInfo = cmd + case *mt.ToSrvInvAction: + onInvActionMu.RLock() + defer onInvActionMu.RUnlock() + + for _, handler := range onInvAction { + cmd.Action = handler(cc, cmd.Action) + } + + if cmd.Action == "" { + return + } case *mt.ToSrvInvFields: if handleOnPlayerReceiveFields(cc, cmd) { return |