diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-13 00:23:56 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-13 00:23:56 +0200 |
commit | 4ae95be9db742f67d313d2579cddbc0b00b1bd08 (patch) | |
tree | f3edcd7b8d0669bc45414835eb2a8408e0897464 /degesch.c | |
parent | 328bf9af1e3067457edd16fab16109393a0760dc (diff) | |
download | xK-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |