diff options
Diffstat (limited to 'plugins/exec/exec.c')
-rw-r--r-- | plugins/exec/exec.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/exec/exec.c b/plugins/exec/exec.c index c9c64074..31dd9350 100644 --- a/plugins/exec/exec.c +++ b/plugins/exec/exec.c @@ -25,7 +25,7 @@ #include "hexchat-plugin.h" -static xchat_plugin *ph; /* plugin handle */ +static hexchat_plugin *ph; /* plugin handle */ static char name[] = "Exec"; static char desc[] = "Execute commands inside HexChat"; static char version[] = "1.1"; @@ -58,7 +58,7 @@ run_command (char *word[], char *word_eol[], void *userdata) if (!stricmp("-O", word[2])) { /*strcat (commandLine, word_eol[3]);*/ - xchat_printf (ph, "Printing Exec output to others is not supported yet.\n"); + hexchat_printf (ph, "Printing Exec output to others is not supported yet.\n"); return HEXCHAT_EAT_XCHAT; } else @@ -88,7 +88,7 @@ run_command (char *word[], char *word_eol[], void *userdata) { /* avoid garbage */ buffer[dwRead] = '\0'; - xchat_printf (ph, "%s", buffer); + hexchat_printf (ph, "%s", buffer); } } else @@ -101,11 +101,11 @@ run_command (char *word[], char *word_eol[], void *userdata) } /* display a newline to separate things */ - xchat_printf (ph, "\n"); + hexchat_printf (ph, "\n"); if (timeElapsed >= 10) { - xchat_printf (ph, "Command took too much time to run, execution aborted.\n"); + hexchat_printf (ph, "Command took too much time to run, execution aborted.\n"); } CloseHandle (readPipe); @@ -116,7 +116,7 @@ run_command (char *word[], char *word_eol[], void *userdata) } int -xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg) +hexchat_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg) { ph = plugin_handle; @@ -124,15 +124,15 @@ xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugi *plugin_desc = desc; *plugin_version = version; - xchat_hook_command (ph, "EXEC", HEXCHAT_PRI_NORM, run_command, "Usage: /EXEC [-O] - execute commands inside XChat", 0); - xchat_printf (ph, "%s plugin loaded\n", name); + hexchat_hook_command (ph, "EXEC", HEXCHAT_PRI_NORM, run_command, "Usage: /EXEC [-O] - execute commands inside XChat", 0); + hexchat_printf (ph, "%s plugin loaded\n", name); return 1; /* return 1 for success */ } int -xchat_plugin_deinit (void) +hexchat_plugin_deinit (void) { - xchat_printf (ph, "%s plugin unloaded\n", name); + hexchat_printf (ph, "%s plugin unloaded\n", name); return 1; } |