aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar bai 2020-07-28 04:29:23 -0400
committerLibravatar bai 2020-07-28 04:29:23 -0400
commite8049e9b5a50ad432e87fb28bd93b929e74b8d8a (patch)
tree73e10ee83b01e8f9e7740de63b33efddf84d8553
parente4a14199d57455083e71f7b68b78fc231d32fc77 (diff)
downloadweabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.tar.gz
weabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.tar.xz
weabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.zip
Arreglado manejo de países
-rwxr-xr-xcgi/weabot.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index ff93118..5f659e0 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -729,8 +729,6 @@ class weabot(object):
if board["slip"] == '2':
if hide_end:
host = '★'
- elif addressIsTor(ip):
- host = 'onion'
else:
host = getHost(ip)
if host:
@@ -764,7 +762,7 @@ class weabot(object):
if hide_end or addressIsTor(ip):
country = '??'
else:
- country = getCountry(ip)
+ country = getCountry(ip) or '??'
post["name"] += " <em>[%s]</em>" % country
# set expiration date if necessary