Event: OnDevoice(from,channel,nickname)
Syntax: function OnDevoice(object from,string channel,string nickname)
Event arguments
from- the user which set the devoice
channel- the affected channel
nickname- the devoiced user

This event is triggered when a user is devoiced.
Note: You can get the host and the user of the person which set the devoiceby using from.Host and from.User.

Example:
function OnDevoice(from,channel,devoiced)
{
//if you didn't devoice the user and the user is in you buddy list,the give him voice(you must be a channel op)
if(from!=ole.Me&&ole.IsBuddy(devoiced))
{
ole.Voice(channel,devoiced);
}
}


Home|Scripting