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!"); }