summary refs log tree commit diff stats
path: root/plugins/mpcinfo/mpcInfo.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-25 23:54:31 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-25 23:54:31 +0100
commitd2c5bda0b81282c18a6d9ddcf21f4f1afc64b5ee (patch)
treeaae1120b0293113c328a761f8b99777baa8b33b9 /plugins/mpcinfo/mpcInfo.c
parentf108310ad25c844c801847f06d4b393a3eced3f8 (diff)
some mpcinfo cosmetics and deinit()
Diffstat (limited to 'plugins/mpcinfo/mpcInfo.c')
-rw-r--r--plugins/mpcinfo/mpcInfo.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/plugins/mpcinfo/mpcInfo.c b/plugins/mpcinfo/mpcInfo.c
index 92a6d357..5b491e73 100644
--- a/plugins/mpcinfo/mpcInfo.c
+++ b/plugins/mpcinfo/mpcInfo.c
@@ -123,18 +123,25 @@ static int mpc_tell(char *word[], char *word_eol[], void *userdata){
 }
 
 int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg){
-   ph = plugin_handle;
-   *plugin_name = "mpcInfo";
-   *plugin_desc = "Information-Script for Media Player Classic"; 
-   *plugin_version=VERSION;
+	ph = plugin_handle;
+	*plugin_name = "mpcInfo";
+	*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_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");
-   return 1;
+	xchat_hook_command(ph, "tell", 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);
+
+	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;
 }