Event: OnMode(nick,channel,mode,handle)
Syntax: OnMode(object nick,string channel,string mode,object handle)
Event arguments
nick- the person which sets the mode for the channel
channel- the channel
mode- the mode which was set
handle- the output handler
This event is triggered when a user change/set modes of a channel.
Note: You can get the host and the user of the person which has set the mode by using nick.Host
and nick.User. To edit the output text use ole.SetOutput(text,handle);. To delete
the output text use ole.DelOutput(handle);
Example:
function OnMode(nick,channel,mode,handle)
{
ole.GetModes(channel);
}