When I was hacking on the original qwebirc, I added a parser I found in a random comment from its issues page, which converted smiley codes to their corresponding
tags. This was basically a setInterval with a bunch of regex and replacing, but it worked without any noticeable lag.
Is there an event that can be caught when a new chat line is inserted to the channel? I suppose I could just do another setInterval when the DOM's ready, but if there's an existing event I can hook into, that would be ideal for replicating the parser. The method used to generate the mouseover images might even be suited for this.
Would also be happy to submit a pull request once I get it working. :)
When I was hacking on the original qwebirc, I added a parser I found in a random comment from its issues page, which converted smiley codes to their corresponding
tags. This was basically a setInterval with a bunch of regex and replacing, but it worked without any noticeable lag.
Is there an event that can be caught when a new chat line is inserted to the channel? I suppose I could just do another setInterval when the DOM's ready, but if there's an existing event I can hook into, that would be ideal for replicating the parser. The method used to generate the mouseover images might even be suited for this.
Would also be happy to submit a pull request once I get it working. :)