Open SoniEx2 opened 5 years ago
I'm not sure if that is undesirable behavior. How does C behave?
C plugins don't give eachother interference - you get "hello" where you did "/a b", not where /b set the plugin context to.
Hmm, looking at the code, you'll probably need to use a dummy handle (hexchat_plugingui_register("lua dummy", ...)
or something) between lua script start and hexchat.register()... but that should fix the interference issues?
They already use dummy handles, maybe only for pluginpref though?
Hmm...
How do you move hooks across handles?
a.lua
b.lua
If you "/a b", it prints "hello" in
#hexchat
, not in the current context as it should.