From c7a00a4aba32984b4d3cc8fc5bb1039f4f6cc224 Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 25 Sep 2013 17:16:47 -0400 Subject: Only show users country if its not unknown --- src/common/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/util.c b/src/common/util.c index 9771b1f6..cb6181c4 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1253,7 +1253,7 @@ country (char *hostname) domain_t *dom; if (!hostname || !*hostname || isdigit ((unsigned char) hostname[strlen (hostname) - 1])) - return _("Unknown"); + return NULL; if ((p = strrchr (hostname, '.'))) p++; else @@ -1263,7 +1263,7 @@ country (char *hostname) sizeof (domain_t), country_compare); if (!dom) - return _("Unknown"); + return NULL; return _(dom->country); } -- cgit 1.4.1