Event: OnOp(from,channel,nick)
Syntax: OnOp(object from,string channel,string nick)
Event arguments
from- person which gave channel operator privileges to a user
channel- the channel
nick- the user which was oped
This event is triggered when a user receive operator privileges on a channel.
Note: You can get the host and the user of the person which gave operator privileges 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 OnOp(op,channel,nick)
{
//check if you were oped
if(nick==ole.Me) { ole.Msg(channel,"Thanks for +o, "+op); }
}