well it should be == rather than isin
you could simplify it some
on *:text:lol: set %smileys :P :8 :] :$ (O_o) o_o d-_-b | msg $chan $gettok(%smileys,$r(1,7),32)
there, its now one line :P