Event: OnAction(from,to,message,handle);
Syntax: OnAction(object from,string to,string message,object handle);
Event arguments
from- the sender
to- the receiver
message- the message
handle- the output handler

This event trigger when a user send an ACTION message to a channel or to you.
Note: You can get the host and the user of the sender by using from.Host and from.User. To edit the output text use ole.SetOutput(text,handle);. To delete the message use ole.DelOutput(handle);

Example:
function OnAction(sender,destination,message,handle)
{
//Echo into the Status window
ole.Echo("*",sender+" has sent a new ACTION message to "+destination);
}


Home|Scripting