My previous patching broke smilies for protocols with
no per-protocol smileys (e.g. IRC). I would prefer
there was a better way than what this patch does
(directly looking at imhtml->smiley_data), but at the
moment, there isn't. Some day when we rework the smiley
tree stuff, we'll make this sort of thing easy.