mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-11-26 22:39:25 +01:00
Document invalidCommand and at a pointer to PluginRegexp in the events documentation.
This commit is contained in:
parent
0305de96c8
commit
bf25eaace0
@ -45,8 +45,11 @@ be sent instead.
|
|||||||
Commands handling
|
Commands handling
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
Command dispatching
|
||||||
|
-------------------
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
I wrote this section with the little knowledge I have of the
|
I wrote this subsection with the little knowledge I have of the
|
||||||
commands handling (all I know comes from hacks I made to write
|
commands handling (all I know comes from hacks I made to write
|
||||||
the Aka plugin), so keep in mind some informations might
|
the Aka plugin), so keep in mind some informations might
|
||||||
be wrong.
|
be wrong.
|
||||||
@ -82,3 +85,17 @@ list and don't touch other items of the list).
|
|||||||
|
|
||||||
At every command call, *all* callbacks are called, and if *any* of them
|
At every command call, *all* callbacks are called, and if *any* of them
|
||||||
returns ``True``, the command is not called.
|
returns ``True``, the command is not called.
|
||||||
|
|
||||||
|
Other command-related events
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* all ``invalidCommand`` methods get called (with an Irc object, an IrcMsg
|
||||||
|
objet, and a list of token) when a user calls a command that no plugin
|
||||||
|
provides.
|
||||||
|
|
||||||
|
|
||||||
|
Regular expression triggered events
|
||||||
|
===================================
|
||||||
|
|
||||||
|
The :class:`supybot.callbacks.PluginRegexp` class provides some utilities
|
||||||
|
for creating plugins that act on regular expression matching.
|
||||||
|
Loading…
Reference in New Issue
Block a user