1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

Improve nick completion: complete first by nicks that highlight me, before nicks speaking without highlight

This commit is contained in:
Sebastien Helleu
2008-12-17 15:44:10 +01:00
parent e3b26523a7
commit adb1fe0747
6 changed files with 101 additions and 64 deletions
+8 -2
View File
@@ -1230,7 +1230,10 @@ irc_protocol_cmd_privmsg (struct t_irc_server *server, const char *command,
IRC_COLOR_CHAT,
pos_args);
irc_channel_nick_speaking_add (ptr_channel, nick);
irc_channel_nick_speaking_add (ptr_channel,
nick,
weechat_string_has_highlight (pos_args,
server->nick));
irc_channel_nick_speaking_time_remove_old (ptr_channel);
irc_channel_nick_speaking_time_add (ptr_channel, nick,
time (NULL));
@@ -1391,7 +1394,10 @@ irc_protocol_cmd_privmsg (struct t_irc_server *server, const char *command,
NULL),
pos_args);
irc_channel_nick_speaking_add (ptr_channel, nick);
irc_channel_nick_speaking_add (ptr_channel,
nick,
weechat_string_has_highlight (pos_args,
server->nick));
irc_channel_nick_speaking_time_remove_old (ptr_channel);
irc_channel_nick_speaking_time_add (ptr_channel, nick,
time (NULL));