ON *:RAWMODE:#:{
var %takepara $remove($gettok($chanmodes,1-3,44),$chr(44)),%i 1,%j 2,%set 1
while ($mid($1,%i,1)) {
var %t $v1
if (%t == +) %set = 1
elseif (%t == -) %set = 0
elseif (%t isin $nickmode) {
var %nick = $eval($chr(36) $+ %j,2)
if ($istokcs(Y y q a o h v,%t,32)) && (%nick == $me) {
if (%set) { msg $chan thanks for the $replacex(%t,Y,ojoin,y,oper,o,operator,h,halfop,a,admin,q,owner,v,voice) $nick $+ ! }
else { msg $chan why did u do that man why $+ $chr(44) i hate u for removing $replacex(%t,Y,ojoin,y,oper,o,operator,h,halfop,a,admin,q,owner,v,voice)) $nick $+ ! }
}
inc %j
}
elseif (%t isin %takepara) inc %j
inc %i
}
}