mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-11-26 14:29:25 +01:00
Document plugins' __init__() and die().
This commit is contained in:
parent
bf25eaace0
commit
600ccdbd3e
@ -15,6 +15,17 @@ In case multiple plugins implement the same special methods, the order
|
|||||||
they are called depends on the ``callAfter`` and ``callBefore``
|
they are called depends on the ``callAfter`` and ``callBefore``
|
||||||
(lists of plugin names) attributes of the plugins, if they are set.
|
(lists of plugin names) attributes of the plugins, if they are set.
|
||||||
|
|
||||||
|
Loading and unloading
|
||||||
|
=====================
|
||||||
|
|
||||||
|
The ``__init__`` method gets called with an Irc object as a parameter
|
||||||
|
when a plugin is loaded (or has just been reloaded).
|
||||||
|
Make sure you always call the parent's ``__init__``.
|
||||||
|
|
||||||
|
When a plugin is unloaded (or is to be reloaded), the ``die``
|
||||||
|
method is called (with no parameter).
|
||||||
|
Also make sure you always call the parent's ``__init__``.
|
||||||
|
|
||||||
Commands and numerics
|
Commands and numerics
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user