summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-10-21 03:27:59 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-10-21 03:27:59 +0200
commitb52397e11d51420cd271d30ab32c936deccdb927 (patch)
tree3b9d35910add781e8d3ba91bab681de456647f01 /plugins
parent32023cc18e12dcc853e5fe7e5a134480e1b63388 (diff)
menu entry and icon for winam plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/winamp/winamp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/winamp/winamp.c b/plugins/winamp/winamp.c
index bc75104c..46fc890d 100644
--- a/plugins/winamp/winamp.c
+++ b/plugins/winamp/winamp.c
@@ -163,22 +163,24 @@ int xchat_plugin_init(xchat_plugin *plugin_handle,
                       char **plugin_version,
                       char *arg)
 {
-   /* we need to save this for use with any xchat_* functions */
-   ph = plugin_handle;
+	/* we need to save this for use with any xchat_* functions */
+	ph = plugin_handle;
 
-   *plugin_name = "Winamp";
-   *plugin_desc = "Winamp plugin for XChat";
-   *plugin_version = "0.4";
+	*plugin_name = "Winamp";
+	*plugin_desc = "Winamp plugin for XChat";
+	*plugin_version = "0.4";
 
-   xchat_hook_command(ph, "WINAMP", XCHAT_PRI_NORM, winamp, "Usage: /WINAMP [PAUSE|PLAY|STOP|NEXT|PREV|START] - control Winamp or show what's currently playing", 0);
+	xchat_hook_command(ph, "WINAMP", XCHAT_PRI_NORM, winamp, "Usage: /WINAMP [PAUSE|PLAY|STOP|NEXT|PREV|START] - control Winamp or show what's currently playing", 0);
+   	xchat_command (ph, "MENU -ietc\music.png ADD \"Window/Display current song\" \"WINAMP\"");
 
-   xchat_print(ph, "Winamp plugin loaded\n");
+	xchat_print(ph, "Winamp plugin loaded\n");
 
-   return 1;       /* return 1 for success */
+	return 1;       /* return 1 for success */
 }
 
 int xchat_plugin_deinit(void)
 {
+	xchat_command(ph, "MENU DEL \"Window/Display current song\"");
 	xchat_print(ph, "Winamp plugin unloaded\n");
 	return 1;
 }