Event: OnPrivNotice(from,message,handle)
Syntax: OnPrivNotice(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 notice from a user.
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 OnPrivateNotice(from,message,handle)
{
//if the notice message is not from a buddy, delete the message
if(!ole.IsBuddy(from)) { ole.DelOutput(handle); }
}