aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/degesch.c b/degesch.c
index c61fab6..0f8f22b 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7270,12 +7270,11 @@ irc_handle_privmsg_text (struct server *s,
char *prefixes = irc_get_privmsg_prefix
(s, str_map_find (&s->irc_users, nickname), target);
- // Make autocomplete offer the last speakers first on partial matches
- // TODO: might want to do this on notices as well, and the behaviour
- // shouldn't change depending on whether CAP echo-message is enabled
+ // Make autocomplete offer recent speakers first on partial matches
+ // (note that freshly joined users also move to the front)
struct user *user;
struct channel_user *channel_user;
- if (buffer->channel
+ if (!irc_is_this_us (s, msg->prefix) && buffer->channel
&& (user = str_map_find (&s->irc_users, nickname))
&& (channel_user = irc_channel_get_user (buffer->channel, user)))
{