Event: OnTopic(from,channel,topic,handle)
Syntax: OnTopic(object from,string channel,string topic,object handle)
Event arguments
from- the person who changed the channel topic
channel- the channel
mode- the new topic
handle- the output handler

This event is triggered when a person change the topic of a channel.
Note: You can get the host and the user of the person who changed the channel topic by using from.Host and from.User. To edit the output text use ole.SetOutput(text,handle);. To delete the output text use ole.DelOutput(handle);

Example:
function OnTopic(from,channel,topic,handle)
{
ole.SetOutput("New topic by "+from+": "+topic,handle);
}


Home|Scripting