mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-10 13:12:34 +01:00
display sysinfo for self when not in channel/dialog
This commit is contained in:
parent
7b0555e380
commit
b5934a75b3
@ -359,9 +359,14 @@ printInfo (char *word[], char *word_eol[], void *user_data)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* print standard error message */
|
xchat_printf (ph, " * Client: XChat-WDK %s (x%d)\n", xchat_get_info (ph, "wdk_version"), getCpuArch ());
|
||||||
xchat_printf (ph, "No channel joined. Try /join #<channel>");
|
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;
|
return XCHAT_EAT_XCHAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user