From c8ad30020ba80fa1a27d21385a6f2869830b91c0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 5 May 2005 16:26:34 +0000 Subject: Improved Perl interface and some changes in Python: - function "print_with_channel" was removed - function "command" now runs weechat command or send text to channel - Perl functions are now called with weechat::name (instead of IRC::name) - IRC::xxx functions are still active for compatibility with old scripts --- src/common/completion.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/common/completion.c') diff --git a/src/common/completion.c b/src/common/completion.c index 03b6ada59..1975415f1 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -193,7 +193,8 @@ completion_build_list (t_completion *completion, void *channel) } return; } - if ((strcasecmp (completion->base_command, "perl") == 0) + if (((strcasecmp (completion->base_command, "perl") == 0) + || (strcasecmp (completion->base_command, "python") == 0)) && (completion->base_command_arg == 1)) { weelist_add (&completion->completion_list, @@ -204,18 +205,7 @@ completion_build_list (t_completion *completion, void *channel) "autoload"); weelist_add (&completion->completion_list, &completion->last_completion, - "unload"); - return; - } - if ((strcasecmp (completion->base_command, "python") == 0) - && (completion->base_command_arg == 1)) - { - weelist_add (&completion->completion_list, - &completion->last_completion, - "load"); - weelist_add (&completion->completion_list, - &completion->last_completion, - "autoload"); + "reload"); weelist_add (&completion->completion_list, &completion->last_completion, "unload"); -- cgit v1.2.3