From 6263278707993a43770ca0bcc2c6ee58b2f862d8 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Thu, 21 Oct 2010 01:55:12 +0200 Subject: make update checker available via gui --- plugins/upd/upd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index 080928df..b526ba0b 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -93,9 +93,11 @@ xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugi *plugin_name = "Update Checker"; *plugin_desc = "Plugin for checking for XChat-WDK updates"; - *plugin_version = "1.0"; + *plugin_version = "1.1"; xchat_hook_command (ph, "UPDCHK", XCHAT_PRI_NORM, print_version, 0, 0); + xchat_command (ph, "MENU ADD \"Help/Check for updates\" \"UPDCHK\""); + xchat_print (ph, "Update Checker plugin loaded\n"); print_version (); @@ -105,6 +107,7 @@ xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugi int xchat_plugin_deinit (void) { + xchat_command(ph, "MENU DEL \"Help/Check for updates\""); xchat_print (ph, "Update Checker plugin unloaded\n"); return 1; } -- cgit 1.4.1