summary refs log tree commit diff stats
path: root/plugins/exec
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-30 08:42:48 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-10-30 08:42:48 +0100
commite681eafa78262d0c177832d67900687f2c938081 (patch)
tree5668476e046c505b9f3fcc8c53b6e0971c146978 /plugins/exec
parent97dc13fde70810abf07985f45ac459560eae6e96 (diff)
Rebranding for the rest of plugin*
Diffstat (limited to 'plugins/exec')
-rw-r--r--plugins/exec/exec.c20
-rw-r--r--plugins/exec/exec.def4
2 files changed, 12 insertions, 12 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;
 }
diff --git a/plugins/exec/exec.def b/plugins/exec/exec.def
index 77670bf2..e560f50f 100644
--- a/plugins/exec/exec.def
+++ b/plugins/exec/exec.def
@@ -1,3 +1,3 @@
 EXPORTS 

-xchat_plugin_init 

-xchat_plugin_deinit 

+hexchat_plugin_init 

+hexchat_plugin_deinit