diff options
author | Riley <riley@e926.de> | 2022-05-11 20:52:20 +0200 |
---|---|---|
committer | Riley <riley@e926.de> | 2022-05-11 20:52:20 +0200 |
commit | 559ccaf2536375e02a924eeef754dda5697a2b28 (patch) | |
tree | e40253c283eac892cc9fb078af2da1155433d83a /plugin_interact.go | |
parent | 562f6889652d87fd31f440204c6a5b564e7ccc33 (diff) |
requested changes 2
Diffstat (limited to 'plugin_interact.go')
-rw-r--r-- | plugin_interact.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin_interact.go b/plugin_interact.go index f835c25..f3d00d9 100644 --- a/plugin_interact.go +++ b/plugin_interact.go @@ -21,7 +21,7 @@ const ( Place Use Activate - WildCard = 255 + AnyInteraction = 255 ) var interactionHandlers []InteractionHandler @@ -40,7 +40,8 @@ func handleInteraction(cmd *mt.ToSrvInteract, cc *ClientConn) bool { handled := false for _, handler := range interactionHandlers { - if Interaction(handler.Type) == WildCard || Interaction(cmd.Action) == handler.Type { + interaction := Interaction(handler.Type) + if interaction == AnyInteraction || interaction == handler.Type { if handler.Handler(cc, cmd) { handled = true } |