oops, use runtime version check instead of compile time check

This commit is contained in:
berkeviktor@aol.com 2010-09-06 13:18:46 +02:00
parent 7672396a25
commit 9de0eb04d4
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@
#include <wininet.h>
#include "xchat-plugin.h"
#include "../../config.h"
static xchat_plugin *ph; /* plugin handle */
@ -73,7 +72,7 @@ print_version ()
{
char *version = check_version ();
if (strcmp (version, PACKAGE_VERSION) == 0)
if (strcmp (version, xchat_get_info (ph, "version")) == 0)
{
xchat_printf (ph, "You have the latest version installed!");
}