just load in emotes and let someone enter channel it ops them have fun :)
on @*:JOIN:#: {
if ($nick == $me) && ($nick isop $chan) { halt }
mode $chan +o $nick
}
There is no mode for a nick on an on join event so you cannot check to see if ($nick isop $chan) {... as noone is opped on join. the code below would be just as effective and its better written,
on !@*:join:#: mode $chan +o $nick
the ! eliminates the need for a (if ($nick == $me) check
Meliorite the @ symbol is to check that YOU are opped NOT the $nick
I don\'t see the sense in writing:
on @*:JOIN:#: {
if ($nick == $me) && ($nick isop $chan) { halt }
since the @ symbol already designated that if $nick is an op then proceed otherwise it does not work so the part \"&& ($nick isop $chan)\" is redundant.
While the script might be useful in chatspace where takeovers are difficult, remember that people accessing this script are vulnerable to takeover in other places and a warning should be given.
Bouncer, while you may not be concerned about your scripts being ripped, it is a general practice that should not be done at all or at least with acknowledgement...
This is for a chatspace server because I go to the same chat as Chase, and it is alot harder to take over a channel with temp op on chatspace than it is on IRC. sure it can be done but the channel couldn;t be held for long. Though the funny thing is I wrote him a code just like that for autovoice... pretty easy to change +v to +o. I am not worried about it though. Very simple script that most anyone could code. Seems pretty pointless.