MegBot icon indicating copy to clipboard operation
MegBot copied to clipboard

What is calling plugins?

Open moggers87 opened this issue 7 years ago • 1 comments

This core plugin has at least 3 ways it can call event handlers from plugins:

  • connection.hooker.hook(connection, info) which is labelled as "old system"
  • connection.handler.event(event) which is labelled as "new events/hook system"
  • connection.core["Coreexecutor"].main(connection, info, info.plugin_name) which is labelled as new or old
    • but plugins are run in threads and it appears to be the only place where that is so

This mess needs to be cleaned up and we should use one system for everything.

moggers87 avatar Apr 14 '18 15:04 moggers87

@xray7224 choose one and I can convert everything to use that ☺

moggers87 avatar Apr 14 '18 15:04 moggers87