def parse(message)
      message.chomp!

      if message =~ /^PING \S+$/
        if @config.hide_ping_pongs
          send_data message.sub(/PING/, 'PONG')
        else
          @loggers.info "<< #{message}"
          raw message.sub(/PING/, 'PONG')
        end
      else
        @loggers.info "<< #{message}"
        event_data = IRC::Events::Parser.parse(message, @isupport['CHANTYPES'])
        parse_event_data(event_data) unless event_data.empty?
      end
    end
def parse(message)
      message.chomp!

      if message =~ /^PING \S+$/
        if @config.hide_ping_pongs
          send_data message.sub(/PING/, 'PONG')
        else
          @loggers.info "<< #{message}"
          raw message.sub(/PING/, 'PONG')
        end
      else
        @loggers.info "<< #{message}"
        event_data = IRC::Events::Parser.parse(message, @isupport['CHANTYPES'])
        parse_event_data(event_data) unless event_data.empty?
      end
    end
parsing incoming traffic