tsion/on_irc — pull request #4 by CodeBlock (2012-01-28 23:32:33+00:00)
Title: I'm not sure of a better fix for this, but on_irc is breaking on some (i...

...nvalid) unicode, and this seems to fix the issue (which I describe below).

18:15:56 < duckinator> ¡
18:15:56 ::: rublets [~rublets@cpe-174-100-171-46.neo.res.rr.com] has quit [Remote host closed the connection]

With this in the console:
/home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/on_irc-2.1.3/lib/on_irc/parser.rb:11:in `scan': invalid byte sequence in UTF-8 (ArgumentError)
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/on_irc-2.1.3/lib/on_irc/parser.rb:11:in `parse'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/on_irc-2.1.3/lib/on_irc/server.rb:44:in `receive_line'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/on_irc-2.1.3/lib/on_irc/connection.rb:18:in `receive_line'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:64:in `receive_data'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from /home/ricky/.rvm/gems/ruby-1.9.3-p0/gems/on_irc-2.1.3/lib/on_irc.rb:32:in `connect'
from rublets.rb:103:in `

'

And rublets.rb line 103 is a comment, I pasted line 102-103 here:
@bot.connect
#end # end thread