how would a script look if i wanted to automatically reop myself if someone deops me, then deop them?(kinda like a revenge script)
If you don't have any bots in the channel you are pretty much helpeless if someone deops you.
nah, i got one working
here it is if anyone else wants to use it
on 1:deop:#: {
If ($nick == $me) { halt }
.timer 1 7 unset %msd $+ $nick
inc %msd [ $+ [ $nick ] ]
/chanserv op $chan %prince
/mode # -o $nick | kick # $nick 4No deoping me!!! | unset %msd
}
}
It actually depends on the type of server you are on.
In that remote just pasted it would only work if you were on the channels AOP or SOP list AND only if the server is running Chanserv ,Nickserv services..
If you got L on your channel and have +o, +m or +n on it you can use this script
on *:DEOP:#:{
if ($nick == $me) { halt | stop }
elseif ($opnick == $me) {
msg L op $chan
.timer 1 1 mode $chan -o $nick
.timer 1 2 kick $chan $nick Don't try to deop me
}
}
ok, that worked, and i'm adding ones in to reowner myself if someone -q's me, and it works, but now i;m trying to get deprotect to work (mode "a"), and it isnt working, this is what i got
on *:DEPROTECT:#:{
if ($nick == $me) { halt | stop }
elseif ($opnick == $me) {
msg chanserv protect $chan
.timer 1 1 mode $chan -a $nick
.timer 1 2 kick $chan $nick Don't try to deprotect me
}
}
DEPROTECT <<-- thats not a mode on a irc server, not what i have seen anyway.. on 1:OP: och on 1:DEOP: the identifyer for op/deop ..
sorry for asking but what is mode $chan -a $nick ???
Deprotect/Deadmin (depending on the server you're on)
hmm on Quakenet deop is -o
well, i still cant get it working, i'm running unrealircd, and the mode is +/- a, (which you type /msg chanserv protect #chan nick, to set the mode +a on yourself, but i cant get to to detect when someone -a's me