degesch: add self to completion in server buffers
This commit is contained in:
parent
328bf9af1e
commit
4ae95be9db
@ -8755,6 +8755,12 @@ complete_nicknames (struct app_context *ctx, struct completion *data,
|
|||||||
const char *word, struct str_vector *output)
|
const char *word, struct str_vector *output)
|
||||||
{
|
{
|
||||||
struct buffer *buffer = ctx->current_buffer;
|
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)
|
if (buffer->type != BUFFER_CHANNEL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user