From 46234f050474fe0b4cbece05f206b308f9d8ef3a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 27 Feb 2005 10:16:51 +0000 Subject: Fixed completion bug: now allows command completion in private buffers --- src/common/completion.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/completion.c b/src/common/completion.c index f01b42e9a..40996e46a 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -548,8 +548,9 @@ completion_find_context (t_completion *completion, void *channel, char *buffer, } } - if (!completion->completion_list && channel - && (((t_irc_channel *)channel)->type == CHAT_PRIVATE)) + if (!completion->completion_list && channel && + (((t_irc_channel *)channel)->type == CHAT_PRIVATE) + && (completion->context == COMPLETION_NICK)) { /* nick completion in private (only other nick and self) */ completion->context = COMPLETION_NICK; -- cgit v1.2.3