Skip to content

Commit

Permalink
Do case-insensitive comparison when completing nick
Browse files Browse the repository at this point in the history
  • Loading branch information
jajm committed Sep 24, 2020
1 parent 41924fc commit 434b09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fe-common/fe-rocketchat.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void sig_complete_word(GList **complist, WINDOW_REC *window, char *word,
nicks = nicklist_getnicks(channel);
for (tmp = nicks; tmp != NULL; tmp = tmp->next) {
nick = tmp->data;
if (g_str_has_prefix(nick->nick, word)) {
if (0 == g_ascii_strncasecmp(nick->nick, word, strlen(word))) {
*complist = g_list_append(*complist, g_strdup(nick->nick));
if (*linestart != '/') {
*complist = g_list_append(*complist, g_strconcat("@", nick->nick, NULL));
Expand Down

0 comments on commit 434b09a

Please sign in to comment.