Event: OnYoutube(from,to,link)
Syntax: OnYoutube(object from,string to,string link)
Event arguments
from- the sender
to- the destination. This can be your nickname or a channel
link- the URL address of the video
This event is triggered when a user sends you or to a channel an Youtube video.
Note: You can get the host and the user of the sender by using from.Host
and from.User.
Example:
function OnYoutube(from,to,link)
{
if(to=="#mychannel"&&!ole.IsOp(from)) { ole.Kick(from,to,"Just ops can send Youtube videos"); }
}