Event: OnGetModes(channel,modes)
Syntax: OnGetModes(string channel,string modes)
Event arguments
channel- the channel
modes- the channel modes

This event is trigerred when you request to see the modes of a channel. To request the modes of a channel you can use ole.Mode("#channel","") command.

Example:
function OnGetModes("#channel",modes)
{
//check if the channel has +i mode set and if it has, then set the mode -i
for(i=0;i<modes.length;i++)
{
if(modes.substr(i,1)=="i"){ ole.Mode(channel,"-i"); break;}
}
}


Home|Scripting