summary refs log tree commit diff stats
path: root/plugins/doat
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/doat')
-rw-r--r--plugins/doat/doat.c20
-rw-r--r--plugins/doat/doat.def4
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/doat/doat.c b/plugins/doat/doat.c
index c8fbd278..e62f7d75 100644
--- a/plugins/doat/doat.c
+++ b/plugins/doat/doat.c
@@ -10,7 +10,7 @@
 #include <stdio.h>
 #include "hexchat-plugin.h"
 
-static xchat_plugin *ph;
+static hexchat_plugin *ph;
 
 static int
 parse_command( char *word[], char *word_eol[], void *userdata ) {
@@ -19,7 +19,7 @@ parse_command( char *word[], char *word_eol[], void *userdata ) {
 	char *str1 = NULL;
 	char *delimiter = NULL;
 
-	xchat_context *ctx = NULL;
+	hexchat_context *ctx = NULL;
 
 	if( word[2] != NULL && word[3] != NULL ) {
 		for( str1 = word[2]; ; str1 = NULL ) {
@@ -52,9 +52,9 @@ parse_command( char *word[], char *word_eol[], void *userdata ) {
 
 /*			printf( "channel[%s] server[%s]\n", channel, server );*/
 
-			if( (ctx = xchat_find_context( ph, server, channel ) ) != NULL ) {
-				if( xchat_set_context( ph, ctx ) ) {
-					xchat_command( ph, word_eol[3] );
+			if( (ctx = hexchat_find_context( ph, server, channel ) ) != NULL ) {
+				if( hexchat_set_context( ph, ctx ) ) {
+					hexchat_command( ph, word_eol[3] );
 				}
 			}
 
@@ -71,7 +71,7 @@ parse_command( char *word[], char *word_eol[], void *userdata ) {
 }
 
 int
-xchat_plugin_init( xchat_plugin * plugin_handle, char **plugin_name,
+hexchat_plugin_init( hexchat_plugin * plugin_handle, char **plugin_name,
 	char **plugin_desc, char **plugin_version, char *arg ) {
 
 	ph = plugin_handle;
@@ -79,16 +79,16 @@ xchat_plugin_init( xchat_plugin * plugin_handle, char **plugin_name,
 	*plugin_version = "1.0001";
 	*plugin_desc = "Perform an arbitrary command on multiple channels";
 
-	xchat_hook_command( ph, "doat", HEXCHAT_PRI_NORM, parse_command, "DOAT [channel,list,/network] [command], perform a command on multiple contexts", NULL );
+	hexchat_hook_command( ph, "doat", HEXCHAT_PRI_NORM, parse_command, "DOAT [channel,list,/network] [command], perform a command on multiple contexts", NULL );
 
-	xchat_print (ph, "Do At plugin loaded\n");
+	hexchat_print (ph, "Do At plugin loaded\n");
 
 	return 1;
 }
 
 int
-xchat_plugin_deinit (void)
+hexchat_plugin_deinit (void)
 {
-	xchat_print (ph, "Do At plugin unloaded\n");
+	hexchat_print (ph, "Do At plugin unloaded\n");
 	return 1;
 }
diff --git a/plugins/doat/doat.def b/plugins/doat/doat.def
index 77670bf2..e560f50f 100644
--- a/plugins/doat/doat.def
+++ b/plugins/doat/doat.def
@@ -1,3 +1,3 @@
 EXPORTS 

-xchat_plugin_init 

-xchat_plugin_deinit 

+hexchat_plugin_init 

+hexchat_plugin_deinit