summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/upd/upd.c28
-rw-r--r--plugins/winsys/winsys.cpp4
-rw-r--r--plugins/xtray/xtray.cpp2
3 files changed, 17 insertions, 17 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 1659162c..da92f2e4 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -27,7 +27,7 @@
 
 static xchat_plugin *ph;   /* plugin handle */
 static const char name[] = "Update Checker";
-static const char desc[] = "Check for XChat-WDK updates automatically";
+static const char desc[] = "Check for HexChat updates automatically";
 static const char version[] = "2.1";
 
 static char*
@@ -43,7 +43,7 @@ check_version ()
 	}
 
 	hFile = InternetOpenUrl (hINet,
-							"http://xchat-wdk.googlecode.com/git/version.txt?r=wdk",
+							"https://raw.github.com/hexchat/hexchat/master/version.txt",
 							NULL,
 							0,
 							INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD,
@@ -98,8 +98,8 @@ check_version ()
 	}
 
 	hConnect = InternetConnect (hOpen,
-								TEXT ("xchat-wdk.googlecode.com"),
-								INTERNET_INVALID_PORT_NUMBER,
+								TEXT ("raw.github.com"),
+								INTERNET_DEFAULT_HTTPS_PORT,
 								NULL,
 								NULL,
 								INTERNET_SERVICE_HTTP,
@@ -113,11 +113,11 @@ check_version ()
 
 	hResource = HttpOpenRequest (hConnect,
 								TEXT ("GET"),
-								TEXT ("/git/version.txt?r=wdk"),
+								TEXT ("/hexchat/hexchat/master/version.txt"),
 								TEXT ("HTTP/1.0"),
 								NULL,
 								NULL,
-								INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_AUTH,
+								INTERNET_FLAG_SECURE | INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_AUTH,
 								0);
 	if (!hResource)
 	{
@@ -154,20 +154,20 @@ print_version ()
 {
 	char *version = check_version ();
 
-	if (strcmp (version, xchat_get_info (ph, "wdk_version")) == 0)
+	if (strcmp (version, xchat_get_info (ph, "version")) == 0)
 	{
-		xchat_printf (ph, "You have the latest version of XChat-WDK installed!\n");
+		xchat_printf (ph, "You have the latest version of HexChat installed!\n");
 	}
 	else if (strcmp (version, "Unknown") == 0)
 	{
-		xchat_printf (ph, "Unable to check for XChat-WDK updates!\n");
+		xchat_printf (ph, "Unable to check for HexChat updates!\n");
 	}
 	else
 	{
 #ifdef _WIN64 /* use this approach, the wProcessorArchitecture method always returns 0 (=x86) for some reason */
-		xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x64.exe\n", version);
+		xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x64.exe\n", version);
 #else
-		xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x86.exe\n", version);
+		xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x86.exe\n", version);
 #endif
 	}
 
@@ -180,12 +180,12 @@ print_version_quiet (void *userdata)
 	char *version = check_version ();
 
 	/* if it's not the current version AND not network error */
-	if (!(strcmp (version, xchat_get_info (ph, "wdk_version")) == 0) && !(strcmp (version, "Unknown") == 0))
+	if (!(strcmp (version, xchat_get_info (ph, "version")) == 0) && !(strcmp (version, "Unknown") == 0))
 	{
 #ifdef _WIN64 /* use this approach, the wProcessorArchitecture method always returns 0 (=x86) for plugins for some reason */
-		xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x64.exe\n", version);
+		xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x64.exe\n", version);
 #else
-		xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x86.exe\n", version);
+		xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x86.exe\n", version);
 #endif
 		/* print update url once, then stop the timer */
 		return 0;
diff --git a/plugins/winsys/winsys.cpp b/plugins/winsys/winsys.cpp
index 456f1b0a..4ab1b3fd 100644
--- a/plugins/winsys/winsys.cpp
+++ b/plugins/winsys/winsys.cpp
@@ -365,7 +365,7 @@ printInfo (char *word[], char *word_eol[], void *user_data)
 	{
 		/* uptime will work correctly for up to 50 days, should be enough */
 		xchat_commandf (ph, "ME ** WinSys ** Client: HexChat %s (x%d) ** OS: %s ** CPU: %s (%s) ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
-			xchat_get_info (ph, "wdk_version"),
+			xchat_get_info (ph, "version"),
 			getCpuArch (),
 			wmiOs,
 			wmiCpu,
@@ -375,7 +375,7 @@ printInfo (char *word[], char *word_eol[], void *user_data)
 	}
 	else
 	{
-		xchat_printf (ph, " * Client:  HexChat %s (x%d)\n", xchat_get_info (ph, "wdk_version"), getCpuArch ());
+		xchat_printf (ph, " * Client:  HexChat %s (x%d)\n", xchat_get_info (ph, "version"), getCpuArch ());
 		xchat_printf (ph, " * OS:      %s\n", wmiOs);
 		xchat_printf (ph, " * CPU:     %s (%s)\n", wmiCpu, getCpuMhz ());
 		xchat_printf (ph, " * RAM:     %s\n", getMemoryInfo ());
diff --git a/plugins/xtray/xtray.cpp b/plugins/xtray/xtray.cpp
index b49c7ed7..69303fc5 100644
--- a/plugins/xtray/xtray.cpp
+++ b/plugins/xtray/xtray.cpp
@@ -116,7 +116,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
 	/************************* Add our icon to the tray ************************************************************************/

 	/***************************************************************************************************************************/

 	char szVersion[64];

-	_snprintf(szVersion, 64, "HexChat %s", xchat_get_info(ph, "wdk_version"));

+	_snprintf(szVersion, 64, "HexChat %s", xchat_get_info(ph, "version"));

 	AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);

 

 	/***************************************************************************************************************************/