summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-08-13 00:23:56 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-08-13 00:23:56 +0200
commit4ae95be9db742f67d313d2579cddbc0b00b1bd08 (patch)
treef3edcd7b8d0669bc45414835eb2a8408e0897464 /degesch.c
parent328bf9af1e3067457edd16fab16109393a0760dc (diff)
downloadxK-4ae95be9db742f67d313d2579cddbc0b00b1bd08.tar.gz
xK-4ae95be9db742f67d313d2579cddbc0b00b1bd08.tar.xz
xK-4ae95be9db742f67d313d2579cddbc0b00b1bd08.zip
degesch: add self to completion in server buffers
Diffstat (limited to 'degesch.c')
-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;