From 9de0eb04d4ab3ba88002992091aa6139d222289d Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Mon, 6 Sep 2010 13:18:46 +0200 Subject: [PATCH] oops, use runtime version check instead of compile time check --- plugins/upd/upd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index 67f6cbc8..5d49ca49 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -28,7 +28,6 @@ #include #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!"); }