summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-22 23:42:49 -0500
committerTingPing <tingping@tingping.se>2012-12-22 23:42:49 -0500
commit32eac07424db6e794cc4bc0350545a1f72237efd (patch)
treece2c7a650c157235b04f19226f35b87a87c6a3bf /plugins/upd
parentfa0705f059e7e389eaae7dc6c665b7d400cbe28a (diff)
fix updchk again
Diffstat (limited to 'plugins/upd')
-rw-r--r--plugins/upd/upd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index ed1ad854..2b28e74d 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -69,7 +69,10 @@ check_version ()
 
 		InternetCloseHandle (hFile);
 		InternetCloseHandle (hINet);
-		return buffer;
+		if (strlen (buffer) == 5)
+			return buffer;
+		else
+			return "Unknown";
 	}
 
 	InternetCloseHandle (hINet);
@@ -220,7 +223,7 @@ print_version (char *word[], char *word_eol[], void *userdata)
 		{
 			hexchat_printf (ph, "%s\tYou have the latest version of HexChat installed!\n", name);
 		}
-		else if (strcmp (version, "Unknown") == 0 || strlen (version) != 5)
+		else if (strcmp (version, "Unknown") == 0)
 		{
 			hexchat_printf (ph, "%s\tUnable to check for HexChat updates!\n", name);
 		}