diff options
author | bai | 2020-07-28 04:29:23 -0400 |
---|---|---|
committer | bai | 2020-07-28 04:29:23 -0400 |
commit | e8049e9b5a50ad432e87fb28bd93b929e74b8d8a (patch) | |
tree | 73e10ee83b01e8f9e7740de63b33efddf84d8553 | |
parent | e4a14199d57455083e71f7b68b78fc231d32fc77 (diff) | |
download | weabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.tar.gz weabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.tar.xz weabot-e8049e9b5a50ad432e87fb28bd93b929e74b8d8a.zip |
Arreglado manejo de países
-rwxr-xr-x | cgi/weabot.py | 4 |
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 |