diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 08:42:48 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 08:42:48 +0100 |
commit | e681eafa78262d0c177832d67900687f2c938081 (patch) | |
tree | 5668476e046c505b9f3fcc8c53b6e0971c146978 /plugins/doat/doat.c | |
parent | 97dc13fde70810abf07985f45ac459560eae6e96 (diff) |
Rebranding for the rest of plugin*
Diffstat (limited to 'plugins/doat/doat.c')
-rw-r--r-- | plugins/doat/doat.c | 20 |
1 files changed, 10 insertions, 10 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; } |