summary refs log tree commit diff stats
path: root/plugins/winsys
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-29 04:05:54 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-29 04:05:54 +0100
commitb5934a75b338f72c34ebf3e8e31cee57dd34d697 (patch)
treeee5b0194b4cb1edcc4a45c27b27b402cd5aef75b /plugins/winsys
parent7b0555e380ca92285925d18c1045f28f9298bfd6 (diff)
display sysinfo for self when not in channel/dialog
Diffstat (limited to 'plugins/winsys')
-rw-r--r--plugins/winsys/winsys.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/winsys/winsys.cpp b/plugins/winsys/winsys.cpp
index a3fa94f9..f8d74e2b 100644
--- a/plugins/winsys/winsys.cpp
+++ b/plugins/winsys/winsys.cpp
@@ -359,9 +359,14 @@ printInfo (char *word[], char *word_eol[], void *user_data)
 	}
 	else
 	{
-		/* print standard error message */
-		xchat_printf (ph, "No channel joined. Try /join #<channel>");
+		xchat_printf (ph, " * Client:  XChat-WDK %s (x%d)\n", xchat_get_info (ph, "wdk_version"), getCpuArch ());
+		xchat_printf (ph, " * OS:      %s\n", getWmiInfo (0));
+		xchat_printf (ph, " * CPU:     %s (%s)\n", getWmiInfo (1), getCpuMhz ());
+		xchat_printf (ph, " * RAM:     %s\n", getMemoryInfo ());
+		xchat_printf (ph, " * VGA:     %s\n", getWmiInfo (2));
+		xchat_printf (ph, " * Uptime:  %.2f Hours\n", (float) GetTickCount() / 1000 / 60 / 60);
 	}
+
 	return XCHAT_EAT_XCHAT;
 }