summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c6
1 files changed, 6 insertions, 0 deletions
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;