support for per-plugin/per-script xchat version check

This commit is contained in:
berkeviktor@aol.com 2011-01-13 02:41:21 +01:00
parent 5b095a1544
commit 5128900666
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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