TethrynValis said:
http://mushclient.pastebin.com/Fy5qRKb8
Like this?
Yep, just like that. Thanks!
Here's the modified file. Note that these changes are entirely untested. From now on, this fixed ACS2 will require that my ATCP plugin be installed if it is to receive any ATCP data.
http://mushclient.pastebin.com/QgPQpFFU
Also, since I'm not going to start modifying ACS2 more than neccesary, I can't bundle my PPI module with it. You'll need to copy my 'ppi.lua' file from the libraries/ folder in the ATCP.plugin/ plugin, rename it to ppi-ex.lua, and put it in MUSHclient/lua/ so that ACS2 can access it. The reason you need to rename it when you copy it to lua/ is because Nick included his own version of PPI with MUSHclient, and I don't want to break any plugins that use it. (
[EDIT]: Careful not to rename the copy of the file that's still in the ATCP.plugin libraries though.)
As for the technical synopsis: ACS2 takes the ATCP data, processes it, and broadcasts it to other plugins. I suspect it has an OnPluginBroadcast callback of its own somewhere (but not in this file) so it can use the data itself. All I changed is how ACS2 gets the ATCP data: it gets it from the ATCP plugin instead of processing it manually. It still broadcasts the same data as before.
But again, this is an untested modification. If you run across any problems, let me know.