1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

irc: use current channel first in completion "irc_channels" (task #12923, issue #392)

This commit is contained in:
Sébastien Helleu
2015-11-16 20:24:45 +01:00
parent 10f0873bee
commit 17e1747a82
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* api: add function string_hex_dump()
* api: add argument "length" in function utf8_is_valid()
* alias: display completion in /alias list (issue #518)
* irc: use current channel first in completion "irc_channels"
(task #12923, issue #392)
* irc: add support of "cap-notify" capability (issue #182, issue #477)
* irc: add command /cap (issue #8)
* irc: add hex dump of messages in raw buffer when debug is enabled for irc
+8
View File
@@ -480,6 +480,14 @@ irc_completion_channels_cb (void *data, const char *completion_item,
}
}
/* add current channel first in list */
irc_buffer_get_server_and_channel (buffer, NULL, &ptr_channel);
if (ptr_channel)
{
weechat_hook_completion_list_add (completion, ptr_channel->name,
0, WEECHAT_LIST_POS_BEGINNING);
}
return WEECHAT_RC_OK;
}