mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fix multiple mentions in one line
`jubalh: jubalh jubalh` resulted in `20:32:34 - testuser1: jubalh20:32:34 - testuser1: : jubalh20:32:34 - testuser1: jubalh` Print date/nick only once at beginning of line.
This commit is contained in:
parent
6bc440c6f7
commit
f20f629bb4
@ -396,7 +396,10 @@ _mucwin_print_mention(ProfWin* window, const char* const message, const char* co
|
||||
win_append_highlight(window, THEME_ROOMMENTION, "*%s ", from);
|
||||
win_append_highlight(window, THEME_ROOMMENTION, "%s", before_str + 4);
|
||||
} else {
|
||||
win_print_them(window, THEME_ROOMMENTION, ch, flags, from);
|
||||
// print time and nick only once at beginning of the line
|
||||
if (last_pos == 0) {
|
||||
win_print_them(window, THEME_ROOMMENTION, ch, flags, from);
|
||||
}
|
||||
win_append_highlight(window, THEME_ROOMMENTION, "%s", before_str);
|
||||
}
|
||||
g_free(before_str);
|
||||
|
Loading…
Reference in New Issue
Block a user