From 4ae95be9db742f67d313d2579cddbc0b00b1bd08 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 13 Aug 2015 00:23:56 +0200
Subject: degesch: add self to completion in server buffers
---
degesch.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/degesch.c b/degesch.c
index 7f3f6be..875eead 100644
--- a/degesch.c
+++ b/degesch.c
@@ -8755,6 +8755,12 @@ complete_nicknames (struct app_context *ctx, struct completion *data,
const char *word, struct str_vector *output)
{
struct buffer *buffer = ctx->current_buffer;
+ if (buffer->type == BUFFER_SERVER)
+ {
+ struct user *self_user = buffer->server->irc_user;
+ if (self_user)
+ str_vector_add (output, self_user->nickname);
+ }
if (buffer->type != BUFFER_CHANNEL)
return;
--
cgit v1.2.3-70-g09d2