parent
9a3c1ccd72
commit
b9df78b9c6
|
@ -28,7 +28,7 @@
|
|||
static hexchat_plugin *ph; /* plugin handle */
|
||||
static char name[] = "Exec";
|
||||
static char desc[] = "Execute commands inside HexChat";
|
||||
static char version[] = "1.1";
|
||||
static char version[] = "1.2";
|
||||
|
||||
static int
|
||||
run_command (char *word[], char *word_eol[], void *userdata)
|
||||
|
@ -115,7 +115,6 @@ run_command (char *word[], char *word_eol[], void *userdata)
|
|||
}
|
||||
timeElapsed = difftime (time (0), start);
|
||||
}
|
||||
}
|
||||
|
||||
/* display a newline to separate things */
|
||||
if (!announce)
|
||||
|
@ -129,6 +128,11 @@ run_command (char *word[], char *word_eol[], void *userdata)
|
|||
CloseHandle (readPipe);
|
||||
CloseHandle (pInfo.hProcess);
|
||||
CloseHandle (pInfo.hThread);
|
||||
}
|
||||
else
|
||||
{
|
||||
hexchat_command (ph, "help exec");
|
||||
}
|
||||
|
||||
return HEXCHAT_EAT_HEXCHAT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue