also going off of jethros example
alias emoticon {
tokenize 32 $strip($1-)
if ($count($1-,PRIVMSG,IMAGE)) && ($4 == $me) {
echo -t $remove($gettok($2,1,33),$chr(58)) $remove($gettok($2,1,33),$chr(58)) $replace($1-,smile,:),sad,:(,cry,:'(,$&
mad,D:<,tongue,:P,kiss,:*,smirk,:>,surprise,:o,undecided,:\,indifferent,:/,evil,>:D)
}
elseif ($count($1-,PRIVMSG,IMAGE)) && ($4 != $me) {
echo -t $4 $remove($gettok($2,1,33),$chr(58)) $replace($1-,smile,:),sad,:(,cry,:'(,$&
mad,D:<,tongue,:P,kiss,:*,smirk,:>,surprise,:o,undecided,:\,indifferent,:/,evil,>:D)
}
}
that is the corrected version that will work for both channel and pm emoticon messages