I can't get my test function to work.
I upgraded from mushclient 4.33 to 4.51, added the Atcp_NJG plugin and made sure it was enabled.
In my python scripts file I added a function,
def OnPluginBroadcast (msg, id, name, text):
global test
test = "IT WORKS"
world.Note ("msg: " + msg)
if id == "85f72d0e263d75df7bde6f00":
if msg == 4:
world.Note("4")
elif msg == 5:
world.Note("5")
world.Note("text: " + text)
I never saw "msg: " printed, and the function that printed the test var never printed "IT WORKS". It seems like OnPluginBroadcast isn't being called.
I also tried a quick lua script, same thing no result
function OnPluginBroadcast (msg, id, name, text)
world.Note("works")
I try to trigger OnPluginBroadcast by just moving to different rooms.
Also, OnPluginBroadcast doesn't depend on triggers at all, it's just called by the Atcp_NJG plugin? I tried it with triggers enabled/disabled.
I also noticed something with 4.51; I have one trigger ".*" that catches everything, and I do regex work in the scripts file.
The map tags seem to now be a hidden output in the main window, even though they are displayed in the Map window. My ".*" trigger, triggers much more often.
Also I keep getting a {stats} line too.
It could be my settings cause I upgraded mushclient.