1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

Fixed completion of redefined commands removed by plugins (bug #19176)

This commit is contained in:
Sebastien Helleu
2007-03-01 09:06:04 +00:00
parent f1fdc469c4
commit 018b440004
8 changed files with 86 additions and 2 deletions
+2 -1
View File
@@ -752,7 +752,8 @@ plugin_handler_remove (t_weechat_plugin *plugin,
(handler->next_handler)->prev_handler = handler->prev_handler;
/* remove command from WeeChat command list, if command handler */
if (handler->type == PLUGIN_HANDLER_COMMAND)
if ((handler->type == PLUGIN_HANDLER_COMMAND)
&& (!command_used_by_weechat (handler->command)))
weelist_remove (&index_commands, &last_index_command,
weelist_search (index_commands, handler->command));