From b5934a75b338f72c34ebf3e8e31cee57dd34d697 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Tue, 29 Nov 2011 04:05:54 +0100 Subject: [PATCH] display sysinfo for self when not in channel/dialog --- plugins/winsys/winsys.cpp | 9 +++++++-- 1 file 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 #"); + 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; }