mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-06 11:12:34 +01:00
Merge pull request #585 from rahatarmanahmed/master
Added help text to sysinfo
This commit is contained in:
commit
6e7c0395e1
@ -31,6 +31,7 @@ static hexchat_plugin *ph; /* plugin handle */
|
|||||||
static char name[] = "SysInfo";
|
static char name[] = "SysInfo";
|
||||||
static char desc[] = "Display info about your hardware and OS";
|
static char desc[] = "Display info about your hardware and OS";
|
||||||
static char version[] = "1.1";
|
static char version[] = "1.1";
|
||||||
|
static char helptext[] = "USAGE: /sysinfo - Sends info about your hardware and OS to current channel.";
|
||||||
static int firstRun;
|
static int firstRun;
|
||||||
static char *wmiOs;
|
static char *wmiOs;
|
||||||
static char *wmiCpu;
|
static char *wmiCpu;
|
||||||
@ -397,7 +398,7 @@ hexchat_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **p
|
|||||||
|
|
||||||
firstRun = 1;
|
firstRun = 1;
|
||||||
|
|
||||||
hexchat_hook_command (ph, "SYSINFO", HEXCHAT_PRI_NORM, printInfo, NULL, NULL);
|
hexchat_hook_command (ph, "SYSINFO", HEXCHAT_PRI_NORM, printInfo, helptext, NULL);
|
||||||
hexchat_command (ph, "MENU -ishare\\system.png ADD \"Window/Display System Info\" \"SYSINFO\"");
|
hexchat_command (ph, "MENU -ishare\\system.png ADD \"Window/Display System Info\" \"SYSINFO\"");
|
||||||
|
|
||||||
hexchat_printf (ph, "%s plugin loaded\n", name);
|
hexchat_printf (ph, "%s plugin loaded\n", name);
|
||||||
|
Loading…
Reference in New Issue
Block a user