Let's shrink it down a bit, Ryan:
alias emoticon {
tokenize 32 $strip($1-)
if ($count($1-,PRIVMSG,IMAGE)) {
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)
}
}
Did you mean $strip($1-) ?