summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--plugins/upd/upd.c2
-rw-r--r--xchat-wdk.patch13
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 89bdcf38..001cd9d2 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -70,7 +70,7 @@ print_version ()
 {
 	char *version = check_version ();
 
-	if (strcmp (version, xchat_get_info (ph, "version")) == 0)
+	if (strcmp (version, xchat_get_info (ph, "wdk_version")) == 0)
 	{
 		xchat_printf (ph, "You have the latest version of XChat-WDK installed!\n");
 	}
diff --git a/xchat-wdk.patch b/xchat-wdk.patch
index 96949c17..41f403ba 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	2011-01-13 02:38:00 +0100
++++ xchat-wdk/src/common/plugin.c	2011-01-13 03:05:29 +0100
 @@ -34,7 +34,7 @@
  #include "text.h"
  #define PLUGIN_C
@@ -380,7 +380,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/plugin.c xchat-wdk/src/c
  #include "plugin.h"
  
  
-@@ -996,7 +996,7 @@
+@@ -996,13 +996,16 @@
  		return XCHATLIBDIR;
  
  	case 0x14f51cd8: /* version */
@@ -389,6 +389,15 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/plugin.c xchat-wdk/src/c
  
  	case 0xdd9b1abd:	/* xchatdir */
  		return get_xdir_utf8 ();
+ 
+ 	case 0xe33f6c4a:	/* xchatdirfs */
+ 		return get_xdir_fs ();
++
++	case 0x3d1e70d7:	/* wdk_version */
++		return PACKAGE_VERSION;
+ 	}
+ 
+ 	sess = ph->context;
 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