Merge pull request #214 from prplz/fix-geoip-unicode

Use unicode string for returned message in geoip
This commit is contained in:
Luke Rogers 2014-03-25 20:00:40 +13:00
commit 2cb772674a
1 changed files with 1 additions and 1 deletions

View File

@ -51,4 +51,4 @@ def geoip(inp):
data["cc"] = record["country_code"] or "N/A"
data["country"] = record["country_name"] or "Unknown"
data["city"] = record["city"] or "Unknown"
return "\x02Country:\x02 {country} ({cc}), \x02City:\x02 {city}{region}".format(**data)
return u"\x02Country:\x02 {country} ({cc}), \x02City:\x02 {city}{region}".format(**data)