aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
Diffstat (limited to 'process.go')
-rw-r--r--process.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/process.go b/process.go
index 1d8263f..b7623b5 100644
--- a/process.go
+++ b/process.go
@@ -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