summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-09-06 13:18:46 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-09-06 13:18:46 +0200
commit9de0eb04d4ab3ba88002992091aa6139d222289d (patch)
tree97d6924e4e3aec5d310bb7c212a368d4839e93a3 /plugins/upd
parent7672396a25e9a3511055b4e38d9188d58f526105 (diff)
oops, use runtime version check instead of compile time check
Diffstat (limited to 'plugins/upd')
-rw-r--r--plugins/upd/upd.c3
1 files changed, 1 insertions, 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 <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!");
 	}