irc.rb: reduce some code duplication
irc: test if tabs are preserved
irc.rb: preserve tabs