summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
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);
 		}
2'>22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104