summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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!");
 	}