1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 12:42:16 -05:00

some mpcinfo cosmetics and deinit()

This commit is contained in:
berkeviktor@aol.com 2011-01-25 23:54:31 +01:00
parent f108310ad2
commit d2c5bda0b8
2 changed files with 21 additions and 14 deletions

View File

@ -6,7 +6,7 @@ all: mpcinfo.obj mpcinfo.def
mpcinfo.def:
echo EXPORTS > mpcinfo.def
echo xchat_plugin_init >> mpcinfo.def
# echo xchat_plugin_deinit >> mpcinfo.def
echo xchat_plugin_deinit >> mpcinfo.def
mpcinfo.obj: mpcinfo.c makefile.mak
cl $(CFLAGS) $(GLIB) /I.. mpcinfo.c

View File

@ -123,18 +123,25 @@ static int mpc_tell(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){
ph = plugin_handle;
*plugin_name = "mpcInfo";
*plugin_desc = "Information-Script for Media Player Classic";
*plugin_version=VERSION;
ph = plugin_handle;
*plugin_name = "mpcInfo";
*plugin_desc = "Information-Script for Media Player Classic";
*plugin_version=VERSION;
xchat_hook_command(ph, "tell", XCHAT_PRI_NORM, mpc_tell,"no help text", 0);
xchat_hook_command(ph, "mpc_themes", XCHAT_PRI_NORM, print_themes,"no help text", 0);
xchat_hook_command(ph, "mpc_reloadthemes", XCHAT_PRI_NORM, mpc_themeReload,"no help text", 0);
xchat_print(ph,"\n-----------------------------\n");
themeInit();loadThemes();
xchat_printf(ph, "%s %s loaded successfully!\n",*plugin_name, VERSION);
xchat_print(ph,"-----------------------------\n");
return 1;
xchat_hook_command(ph, "tell", XCHAT_PRI_NORM, mpc_tell,"no help text", 0);
xchat_hook_command(ph, "mpc_themes", XCHAT_PRI_NORM, print_themes,"no help text", 0);
xchat_hook_command(ph, "mpc_reloadthemes", XCHAT_PRI_NORM, mpc_themeReload,"no help text", 0);
themeInit();
loadThemes();
xchat_printf(ph, "%s %s plugin loaded\n",*plugin_name, VERSION);
return 1;
}
int
xchat_plugin_deinit (void)
{
xchat_print (ph, "mpcInfo plugin unloaded\n");
return 1;
}