It's pretty simple. You just type .mode . Any mode goes, including excepts and bans and so on. It also accepts multiple modes at once, like .mode +bb nick1!@ nick2!@ or something like that. Oh, and before you start, be sure to right click and click "Modescript allowed nick", then enter the nick you want the bot to set as 'allowed'. Then have fun. ;)
menu * {
Modescript allowed nick: set %acceptednick $?"What nick would you like to be in command of the mode setting?"
}
on *:TEXT:.mode *:#: {
if ($nick == %acceptednick) {
mode $chan $2- }
elseif ($nick != %acceptednick) {
notice $nick You don't have the specified rights to control me!
}
}