From 5128900666094c818dff9f1292a302c78b27b63f Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Thu, 13 Jan 2011 02:41:21 +0100 Subject: [PATCH] support for per-plugin/per-script xchat version check --- config.h | 1 + xchat-wdk.patch | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 8c4156fb..a091df89 100644 --- a/config.h +++ b/config.h @@ -5,6 +5,7 @@ #define USE_LIBSEXY #define PACKAGE_NAME "xchat" #define PACKAGE_VERSION "1479-2" +#define XCHAT_RELEASE "2.8.8" #define XCHATLIBDIR "." #define XCHATSHAREDIR "." #define OLD_PERL diff --git a/xchat-wdk.patch b/xchat-wdk.patch index 2a5d9831..96949c17 100644 --- a/xchat-wdk.patch +++ b/xchat-wdk.patch @@ -370,7 +370,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/plugin-timer.c xchat-wdk #define strcasecmp stricmp diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/plugin.c xchat-wdk/src/common/plugin.c --- xchat-wdk.orig/src/common/plugin.c 2010-12-28 03:56:42 +0100 -+++ xchat-wdk/src/common/plugin.c 2010-12-28 14:57:33 +0100 ++++ xchat-wdk/src/common/plugin.c 2011-01-13 02:38:00 +0100 @@ -34,7 +34,7 @@ #include "text.h" #define PLUGIN_C @@ -380,6 +380,15 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/plugin.c xchat-wdk/src/c #include "plugin.h" +@@ -996,7 +996,7 @@ + return XCHATLIBDIR; + + case 0x14f51cd8: /* version */ +- return PACKAGE_VERSION; ++ return XCHAT_RELEASE; + + case 0xdd9b1abd: /* xchatdir */ + return get_xdir_utf8 (); diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/proto-irc.c xchat-wdk/src/common/proto-irc.c --- xchat-wdk.orig/src/common/proto-irc.c 2010-05-30 04:28:04 +0200 +++ xchat-wdk/src/common/proto-irc.c 2010-12-28 14:57:33 +0100 @@ -826,7 +835,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/xchat.h xchat-wdk/src/co unsigned int ctcp_time_limit; /*seconds of floods */ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/about.c xchat-wdk/src/fe-gtk/about.c --- xchat-wdk.orig/src/fe-gtk/about.c 2010-05-16 09:43:49 +0200 -+++ xchat-wdk/src/fe-gtk/about.c 2010-12-29 17:28:03 +0100 ++++ xchat-wdk/src/fe-gtk/about.c 2011-01-13 02:40:11 +0100 @@ -39,6 +39,7 @@ #include "../common/xchat.h" @@ -874,7 +883,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/about.c xchat-wdk/src/fe - "This version is unofficial and comes with no support.\n\n" -#endif - "%s\n" -+ "XChat Base: 2.8.8\n\n" ++ "XChat Release: "XCHAT_RELEASE"\n\n" + "OS: %s\n" "Charset: %s " -#ifdef WIN32