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

menu integration for mpcinfo

This commit is contained in:
berkeviktor@aol.com 2011-01-26 00:12:10 +01:00
parent a297a60338
commit 036ffad8ed

View File

@ -128,9 +128,10 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
*plugin_desc = "Information-Script for Media Player Classic"; *plugin_desc = "Information-Script for Media Player Classic";
*plugin_version=VERSION; *plugin_version=VERSION;
xchat_hook_command(ph, "tell", XCHAT_PRI_NORM, mpc_tell,"no help text", 0); xchat_hook_command(ph, "mpc", 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_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_command (ph, "MENU -ietc\\music.png ADD \"Window/Display Current Song (MPC)\" \"MPC\"");
themeInit(); themeInit();
loadThemes(); loadThemes();
@ -142,6 +143,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
int int
xchat_plugin_deinit (void) xchat_plugin_deinit (void)
{ {
xchat_command (ph, "MENU DEL \"Window/Display Current Song (MPC)\"");
xchat_print (ph, "mpcInfo plugin unloaded\n"); xchat_print (ph, "mpcInfo plugin unloaded\n");
return 1; return 1;
} }