some mpcinfo cosmetics and deinit()
This commit is contained in:
parent
f108310ad2
commit
d2c5bda0b8
|
@ -6,7 +6,7 @@ all: mpcinfo.obj mpcinfo.def
|
||||||
mpcinfo.def:
|
mpcinfo.def:
|
||||||
echo EXPORTS > mpcinfo.def
|
echo EXPORTS > mpcinfo.def
|
||||||
echo xchat_plugin_init >> 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
|
mpcinfo.obj: mpcinfo.c makefile.mak
|
||||||
cl $(CFLAGS) $(GLIB) /I.. mpcinfo.c
|
cl $(CFLAGS) $(GLIB) /I.. mpcinfo.c
|
||||||
|
|
|
@ -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_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_hook_command(ph, "mpc_reloadthemes", XCHAT_PRI_NORM, mpc_themeReload,"no help text", 0);
|
||||||
|
|
||||||
xchat_print(ph,"\n-----------------------------\n");
|
themeInit();
|
||||||
themeInit();loadThemes();
|
loadThemes();
|
||||||
xchat_printf(ph, "%s %s loaded successfully!\n",*plugin_name, VERSION);
|
xchat_printf(ph, "%s %s plugin loaded\n",*plugin_name, VERSION);
|
||||||
xchat_print(ph,"-----------------------------\n");
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
xchat_plugin_deinit (void)
|
||||||
|
{
|
||||||
|
xchat_print (ph, "mpcInfo plugin unloaded\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue