I am new here heh i am presenting this small snippet to see if catches your attention. My snippet is for Undernet to use with X, when you get deoped you send a auto message to X to have op Back :) Engoy
on 1:deop:#: {
if ($nick == $me) { halt }
if ($opnick == $me) && ($nick != $me) && (X isin #) { .msg x op #
}
Bullet_Dodger please dont post codes that are screwed up as help
on !*:DEOP:#: { if ($opnick == $me) { .cs op # $me } }
on !*:DEOP:#: { if ($opnick == $me && X ison #) { .msg X op # $me } }
@ Basillisk
the ! in the on Halts it from +o'ing you if you demode ur self so no need for a halt line within the code.
You could use
on 1:deop:#: {
if ($nick == $me) { halt }
if ($opnick == $me) && ($nick != $me) && (X isin #) { .msg x op #
}
on 1:deprotect:#: {
if ($nick == $me) { halt }
if ($protectnick == $me) && ($nick != $me) && (X isin #) { .msg x protect #
}
on 1:dehalfop:#: {
if ($nick == $me) { halt }
if ($halfopnick == $me) && ($nick != $me) && (X isin #) { .msg x halfop #
}
firstly, you forgot to add the end bracket, secondly, why not something like:
on !*:DEOP:#: {
if ($opnick == $me) { cs op $chan yournick }
}
Here is what I fixed:
1) you didnt have an end bracket
2) you halted the script if it was you deoping yourself, but in your if statement you checked again
3) if x is a network service mirc will not know it is on the channel (unrealircd3.2 and anope)
4) lol.