but it looks like you took things from other snippets and posted it.
you could do the mode thanker somthing like this
on *:rawmode:#: {
if (%thanker) && ($2 == $me) {
inc $+(%,mode,.,$chan,.,$1)
var %mode $replace($1,+oq,@~,+ao,&@,+a,&,+o,@,+h,%,+v,+,+q,~,-a,-&,-o,-@,-h,-%,-v,-+,-q,-~)
msg $chan $iif($left($1,1) == +,12{14Thank\'s for the %mode 12}{14 $nick $+ . 12}{14 I have been 12}{14 %mode $+ \'ed In Channel $chan 12}{14 For The 12}{14 $ord($($+(%,mode,.,$chan,.,$1),2)) Time. 12},12{14WTF12}{14 $nick $+ . 12}{14 Why The Hell You Take My Mode! 12}{14 I have been 12}{14 %mode $+ \'ed In Channel $chan 12}{14 For The 12}{14 $ord($($+(%,mode,.,$chan,.,$1),2)) Time. 12})
}
}
menu channel {
.Mode Thanker
.. $iif(%thanker,$style(2)) On:{ set %thanker on | echo -a Mode Thanker Is Now On. }
.. $iif(!%thanker,$style(2)) Off:{ unset %thanker | echo -a Mode Thanker Is Now Off. }
}