summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-13 02:41:21 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-13 02:41:21 +0100
commit5128900666094c818dff9f1292a302c78b27b63f (patch)
tree80087548920ebc3ee43f18ec69b52be62c35d354
parent5b095a1544630085251e98ec17107c5905a88738 (diff)
support for per-plugin/per-script xchat version check
-rw-r--r--config.h1
-rw-r--r--xchat-wdk.patch15
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"
-+				"<b>XChat Base</b>: 2.8.8\n\n"
++				"<b>XChat Release</b>: "XCHAT_RELEASE"\n\n"
 +				"<b>OS</b>: %s\n"
  				"<b>Charset</b>: %s "
 -#ifdef WIN32