diff options
Diffstat (limited to 'plugins/upd/upd.c')
-rw-r--r-- | plugins/upd/upd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index c299c4e6..2b28e74d 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -34,7 +34,7 @@ static hexchat_plugin *ph; /* plugin handle */ static char name[] = "Update Checker"; static char desc[] = "Check for HexChat updates automatically"; static char version[] = "4.0"; -static const char upd_help[] = "Update Checker Usage:\n /UPDCHK, check for HexChat updates\n /UPDCHK SET delay|format, set startup delay or check frequency\n"; +static const char upd_help[] = "Update Checker Usage:\n /UPDCHK, check for HexChat updates\n /UPDCHK SET delay|freq, set startup delay or check frequency\n"; static char* check_version () @@ -69,7 +69,10 @@ check_version () InternetCloseHandle (hFile); InternetCloseHandle (hINet); - return buffer; + if (strlen (buffer) == 5) + return buffer; + else + return "Unknown"; } InternetCloseHandle (hINet); |