Add on_load for plugins

This asynchronous function is called on all plugins right before the IRC
connection is made.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-26 19:06:48 -07:00
parent 85d48d368c
commit f0cfe53c8e
2 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ class Plugin:
async def on_message(self, conn: IrcProtocol, channel: str, who: Prefix, line: str):
pass
async def on_load(self):
pass
async def on_unload(self, conn: IrcProtocol):
pass