Update Checker: Ignore invalid length version nums

This commit is contained in:
TingPing 2012-12-17 20:48:02 -05:00
parent b274ecca4f
commit 76680ae41b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}