summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-26 00:12:10 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-26 00:12:10 +0100
commit036ffad8ed912fdff7e747a0d803ad54cc164ea7 (patch)
tree5174419781ff7723f55092348206499616a81c65
parenta297a603385305528f8566a6a29b6d31a9e94cff (diff)
menu integration for mpcinfo
-rw-r--r--plugins/mpcinfo/mpcInfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mpcinfo/mpcInfo.c b/plugins/mpcinfo/mpcInfo.c
index 5b491e73..e467e516 100644
--- a/plugins/mpcinfo/mpcInfo.c
+++ b/plugins/mpcinfo/mpcInfo.c
@@ -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_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_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();
 	loadThemes();
@@ -142,6 +143,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
 int
 xchat_plugin_deinit (void)
 {
+	xchat_command (ph, "MENU DEL \"Window/Display Current Song (MPC)\"");
 	xchat_print (ph, "mpcInfo plugin unloaded\n");
 	return 1;
 }