summary refs log tree commit diff stats
path: root/plugins/upd/upd.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-17 20:48:02 -0500
committerTingPing <tingping@tingping.se>2012-12-17 20:48:02 -0500
commit76680ae41b34f15df59817dea1d163548b9a2d58 (patch)
tree8ca78d435f7dfc190aea110c272de06f2e06af01 /plugins/upd/upd.c
parentb274ecca4fa3ff497dda64c35a0469eeb47aae89 (diff)
Update Checker: Ignore invalid length version nums
Diffstat (limited to 'plugins/upd/upd.c')
-rw-r--r--plugins/upd/upd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 74f53604..ed1ad854 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -220,7 +220,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)
+		else if (strcmp (version, "Unknown") == 0 || strlen (version) != 5)
 		{
 			hexchat_printf (ph, "%s\tUnable to check for HexChat updates!\n", name);
 		}