mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 23:24:52 +09:00
Pass link to plugin message handlers
For master plugins a message can be received from any of the clients corrently connected to the master. In order for plugins to be able to handle link specific requests they need a reference to the link messages was received from. Add link as the third argument to plugin message handlers.
This commit is contained in:
1 parent
48786f1e59
commit
de629d9416
1 file changed
+1
-1
@@ -530,7 +530,7 @@ function attachPluginMessages(link, plugin) {
|
||||
messageFormat.attach(link);
|
||||
|
||||
} else {
|
||||
messageFormat.attach(link, async (message, format) => await plugin[handler](message, format));
|
||||
messageFormat.attach(link, async (message, format) => await plugin[handler](message, format, link));
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
|
||||
Reference in new issue
Block a user