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

@ -132,9 +132,16 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
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");
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;
}