summary refs log tree commit diff stats
path: root/plugins/sysinfo
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysinfo')
-rw-r--r--plugins/sysinfo/sysinfo.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/plugins/sysinfo/sysinfo.c b/plugins/sysinfo/sysinfo.c
index 8af32c10..5f55f525 100644
--- a/plugins/sysinfo/sysinfo.c
+++ b/plugins/sysinfo/sysinfo.c
@@ -99,6 +99,12 @@ static void print_info (void)
 	char *memory_info;
 	int channel_type;
 
+#ifdef _WIN64
+	const char *build_arch = "x64";
+#else
+	const char *build_arch = "x86";
+#endif
+
 	/* Load information if not already loaded */
 
 	if (cpu_arch == 0)
@@ -149,10 +155,9 @@ static void print_info (void)
 	{
 		hexchat_commandf (
 			ph,
-			"ME ** SysInfo ** Client: HexChat %s (x%d) ** OS: %s ** CPU: %s ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
-			hexchat_get_info (ph, "version"),
-			cpu_arch,
-			os_name,
+			"ME ** SysInfo ** Client: HexChat %s (%s) ** OS: %s(x%d) ** CPU: %s ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
+			hexchat_get_info (ph, "version"), build_arch,
+			os_name, cpu_arch,
 			cpu_info,
 			memory_info,
 			vga_name,
@@ -160,8 +165,8 @@ static void print_info (void)
 	}
 	else
 	{
-		hexchat_printf (ph, " * Client:  HexChat %s (x%d)\n", hexchat_get_info (ph, "version"), cpu_arch);
-		hexchat_printf (ph, " * OS:      %s\n", os_name);
+		hexchat_printf (ph, " * Client:  HexChat %s (%s)\n", hexchat_get_info (ph, "version"), build_arch);
+		hexchat_printf (ph, " * OS:      %s(x%d)\n", os_name, cpu_arch);
 		hexchat_printf (ph, " * CPU:     %s\n", cpu_info);
 		hexchat_printf (ph, " * RAM:     %s\n", memory_info);
 		hexchat_printf (ph, " * VGA:     %s\n", vga_name);