+ if yaml
+ return YAML::load(yaml)
+ else
+ res = {}
+ raw = Irc::Utils.bot.httputil.get_response(GEO_IP_SECONDARY+hostname)
+ raw = raw.decompress_body(raw.raw_body)
+
+ REGEX.each { |key, regex| res[key] = Iconv.conv('utf-8', 'ISO-8859-1', raw.scan(regex).to_s) }
+
+ return res
+ end