Event: OnCtcpRequest(from,reqid,request)
Syntax: function OnCtcpRequest(object from,string reqid,string request)
Event arguments
from- the sender
reqid- the request ID
request- the request text

This event trigger when someone send you a CTCP request.
Note: You can get the host and the user of the sender by using from.Host and from.User.

Example:
function OnCtcpRequest(from,id,request)
{
//if the request ID is PING then respond
if(id=="PING")
ole.CtcpRes(from,id,"Don't ping me");
}


Home|Scripting