Event: OnKick(from,channel,nick,reason,handle)
Syntax: OnJoin(object from,string channel,string nick,string reason,object handle)
Event arguments
from- the person which kicked a user
channel- the channel
nick- the nickname of the kicked user
reason- the reason for the kick
handle- the output handler

This event is triggered when you or another user is kicked from a channel.
Note: You can get the host and the user of the person which kicked a user, 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 OnKick(from,channel,nick,reason,handle)
{
//change the output text
ole.SetOutput("03* "from+"!"+from.user+"@"+from.Host+" kick "+nick+": "+reason,handle);
}


Home|Scripting