summaryrefslogtreecommitdiff
path: root/src/common/completion.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-05-05 16:26:34 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-05-05 16:26:34 +0000
commitc8ad30020ba80fa1a27d21385a6f2869830b91c0 (patch)
tree589fcc057b4641a348a0b2ca7277770069a107c1 /src/common/completion.c
parentc6fc8bd1479a046e5a0e9ba5f344ebfdc9ce4bd1 (diff)
downloadweechat-c8ad30020ba80fa1a27d21385a6f2869830b91c0.zip
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
Diffstat (limited to 'src/common/completion.c')
-rw-r--r--src/common/completion.c16
1 files changed, 3 insertions, 13 deletions
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");