Event: OnPrivMsg(from,message,handle)
Syntax: OnPrivMsg(object from,string message,object handle)
Event arguments
from- the sender
message- the message
handle- the output handler
This event is triggered when you receive a private message.
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 output text use ole.DelOutput(handle);
Example:
function OnPrivMsg(from,message,handle)
{
//if sender is not on the buddies list close the window
if(!ole.IsBuddy(from)) { ole.Close(from); }
}