Best way for a plugin to interact with another plugin? [SSH.koplugin]
I have a plugin I've been working on, and one of the things it does is disable the SSH plugin (along with a bunch of other things, of course). What I discovered in a no-duh moment was that if dropbear is running when the plugin is disabled, dropbear just keeps running. Fun times can ensue.
Is there a good way to call a function in another plugin? I know outright killing dropbear if it's running kills the pid, and that's what I have at the moment, but that feels so dirty. Is using userpatch from within a plugin a better idea, so I can access the function for ssh to stop? Or is using userpatch from a plugin frowned on?
Thanks!
|