module Balotelli::Core::IrcLogger::Methods
Public Instance Methods
sgets()
click to toggle source
# File lib/balotelli/core/irc_logger.rb, line 12 def sgets str = orig_sgets to_log = "<<#{str.inspect}\n" @log_file.info(to_log) if str =~ /\A:?\S+ \S+ (#\S+) .*/ @logger.channel_log(Regexp.last_match(1).downcase, to_log) end str end
sputs(str)
click to toggle source
# File lib/balotelli/core/irc_logger.rb, line 22 def sputs(str) orig_sputs(str) to_log = ">>#{str.inspect}\n" @log_file.info(to_log) if str =~ /\A:?\S+ (#\S+) .*/ @logger.channel_log(Regexp.last_match(1).downcase, to_log) end str end