Just another thank's for Voice or Op. You can customize it however you want. Even though it's kinda pointless to have one, just decided to make one out of my free time from being bored.
Paste in remotes ( Alt+R ).
[So when you get a voice it'll say 12 15Thanks15 15for15 15the15 15+15 %vnick 12 | And with Op: 12 15Thanks15 15for15 15the15 15@15 %opnick 12]
Instead of using the op and voice event, you can use $mode().op and $mode().voice identifiers like so:
on @*:RAWMODE:#: {
if ($mode(1).op == $me) || ($mode(1).voice == $me) {
msg # $iif($1 === +o,I opped myself.,$iif($1 === +v,I voiced myself.))
}
elseif ($mode(1).op) || ($mode(1).voice) {
msg # $iif($1 === +o,Thanks for the $v2 $nick $+ !,$iif($1 === +v,Thanks for the $v2 $nick $+ !))
}
}
This performs the exact, same function. I did, however, remove the color control codes.
Looks like you missed a bit:
on :Op:#:{
if ($opnick == $me) && ($nick == $me) msg $chan I opped myself.
else if ($opnick == $me) msg $chan Thanks for the op $nick
}
on :Voice:#:{
if ($vnick == $me) && ($nick == $me) msg $chan I voiced myself.
else if ($vnick == $me) msg $chan Thanks for the voice $nick
}
Without the if ($opnick == $me) and if ($vnick == $me) parts in the else statement, it thanks when anyone gets op or voice, which is probably not what you want.
I know this is an old snippet by the way....i'm just pointing this out in case anyone comes across it and decides to use it like I did the other day.
I also edited out the colours and changed the + and @ parts to suit my own use.
You had lots of errors.... Updated code:
on :Op:#:{
if ($opnick == $me ) && ($nick == $me) msg $chan I opped myself.
else msg $chan 12 15Thanks15 15for15 15the15 15@15 $nick 12
}
on :Voice:#:{
if ($vnick == $me) && ($nick == $me) msg $chan I voiced myself.
else msg $chan 12 15Thanks15 15for15 15the15 15+15 $nick 12
}