def print_callback(id, buffer, date, tags, displayed, highlight, prefix, message)
      buffer    = Weechat::Buffer.from_ptr(buffer)
      date      = Time.at(date.to_i)
      tags      = tags.split(",")
      displayed = Weechat.integer_to_bool(displayed)
      highlight = Weechat.integer_to_bool(highlight)
      line = PrintedLine.new(buffer, date, tags, displayed, highlight, prefix, message)
      Weechat::Hooks::Print.find_by_id(id).call(line)
    end
def print_callback(id, buffer, date, tags, displayed, highlight, prefix, message)
      buffer    = Weechat::Buffer.from_ptr(buffer)
      date      = Time.at(date.to_i)
      tags      = tags.split(",")
      displayed = Weechat.integer_to_bool(displayed)
      highlight = Weechat.integer_to_bool(highlight)
      line = PrintedLine.new(buffer, date, tags, displayed, highlight, prefix, message)
      Weechat::Hooks::Print.find_by_id(id).call(line)
    end
low level print callback