summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-13 03:09:00 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-13 03:09:00 +0100
commit0c87e4b9147abaf095b8b84e1e154ecf8da4829e (patch)
tree96024050ed23481baa278a188fa75e9c418b14be
parent5128900666094c818dff9f1292a302c78b27b63f (diff)
previous commit broke update checker, fix it
-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