This is where your script really gets interactive with IRC. With Events, you can do specific things to certain people in certain channels, on certain networks. You do not necessarily have to put Events, into the Events.tcl file either. You can put any event you want, into your own file, in order to keep your code tidy, and organized. You can also have multiple instances of the same event. In previous versions of savIRC this was not possible.
You can access the Events tab of the script center in two ways:
You can create a new event just by adding the code in the text widget or by clicking the "+" icon.
An event is a section of code that will be run when a particular event occurs. When a user joins a channel would be an event. An event can be declared specifying two parameters:
The network name the event will be valid for.
If you don't select any network event, it is valid for all networks and in place of the network name you will see a "*" in the code. When an event occurs, savIRC will first call the event valid for all networks and then will check if an event for the current network exists, if so savIRC will also call this one.
The name of the event.
To see a list of valid event names, add a new event using the "+" icon in the Script Center. The event dialog box will appear asking you to select an event type and network.
When you select an event type you'll see a list of available variables for that event which you can use in your code. There is no need to bring these variables into scope by you, savIRC will do that for you.