From e8456beadc9c065b52291ebdc552564d0a1d9069 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 4 Aug 2013 04:36:10 -0400 Subject: Add reload command for plugins and add to gui --- plugins/python/python.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/python/python.c') diff --git a/plugins/python/python.c b/plugins/python/python.c index ade5de95..7bedcad9 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -382,9 +382,6 @@ Usage: /PY LOAD \n\ ABOUT\n\ \n"; -/* Remove if/when HexChat supports this command for plugins */ -static const char reload[] = "Usage: RELOAD , reloads a python script"; - static const char about[] = "HexChat Python " PY_VERSION " Interface Version " VERSION "\n"; /* ===================================================================== */ @@ -2855,7 +2852,7 @@ hexchat_plugin_init(hexchat_plugin *plugin_handle, hexchat_hook_command(ph, "PY", HEXCHAT_PRI_NORM, Command_Py, usage, 0); hexchat_hook_command(ph, "LOAD", HEXCHAT_PRI_NORM, Command_Load, 0, 0); hexchat_hook_command(ph, "UNLOAD", HEXCHAT_PRI_NORM, Command_Unload, 0, 0); - hexchat_hook_command(ph, "RELOAD", HEXCHAT_PRI_NORM, Command_Reload, reload, 0); + hexchat_hook_command(ph, "RELOAD", HEXCHAT_PRI_NORM, Command_Reload, 0, 0); #ifdef WITH_THREAD thread_timer = hexchat_hook_timer(ph, 300, Callback_ThreadTimer, NULL); #endif -- cgit 1.4.1