Like ircII
, PyIRC gives you the possiblity to react to
different events, by using an /on
mechanism.
The on command lets you set actions which will occur when certain events happen. For example, you can create "personalized" away messages for different individuals, periodic actions that occur at specific times, just to name a few.
When used in a window, /on
will show you what
event handler is installed. It will show you all the event handlers
for all the events. If you use the semantic /on
<event>
, it will show you the actions installed for the
particuliar <event>.
You can also install event handlers using the command line,
but I recommend the use of scripts, like the .pyircrc
file or
anything else if you want to control exactly what you want to do.
The actions can get informations from the event by the
p0
, p1
, p2
, ... variables.
There are a limited number of events generated by PyIRC. Here is the list: