aboutsummaryrefslogtreecommitdiff
path: root/cgi/weabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/weabot.py')
-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