mirror of
https://github.com/Limnoria/Limnoria-doc.git
synced 2025-04-05 06:49:48 +00:00
Actually they are called after updating IrcState
This commit is contained in:
@ -37,10 +37,10 @@ You can catch commands directly with “do-methods”: when the bot receives a
|
|||||||
``PRIVMSG``, all ``doPrivmsg`` methods are called; when it gets a ``437``
|
``PRIVMSG``, all ``doPrivmsg`` methods are called; when it gets a ``437``
|
||||||
message, all ``do437`` methods are called, etc.
|
message, all ``do437`` methods are called, etc.
|
||||||
|
|
||||||
These methods are called **before** Limnoria updates its internal state;
|
These methods are called **after** Limnoria updates its internal state;
|
||||||
so for example someone changes their nick from ``foo`` to ``bar`` (ie.
|
so for example someone changes their nick from ``foo`` to ``bar`` (ie.
|
||||||
``:foo!~user@example.org NICK bar``), then ``doNick`` is called while
|
``:foo!~user@example.org NICK bar``), then ``doNick`` is called while
|
||||||
``irc.state.channels[...].users`` still contains ``foo`` and not ``bar``.
|
``irc.state.channels.[...].users`` already contains ``bar``.
|
||||||
|
|
||||||
Those command take two arguments: an :ref:`Irc object <supybot-irclib-irc>`
|
Those command take two arguments: an :ref:`Irc object <supybot-irclib-irc>`
|
||||||
and a :ref:`IrcMsg object <supybot-ircmsgs>`.
|
and a :ref:`IrcMsg object <supybot-ircmsgs>`.
|
||||||
|
Reference in New Issue
Block a user