eel

formatter for ii(1) logs
Log | Files | Refs | README

commit 3e6e8ddf8814ef85920d18443acc51e9b9d28932
parent 34bcc78966e42ca5d71bc7e1ddf74e845e59197d
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  6 Jun 2018 00:38:23 +0200

reset last nick name on unknown input

Diffstat:
Meel.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/eel.c b/eel.c @@ -87,6 +87,7 @@ main(void) line[strcspn(line, "\n")] = '\0'; if (parse_msg(line, &time, &nick, &msg) < 0) { puts(line); + *last = '\0'; } else { print_msg(time, nick, strcmp(nick, last) == 0, msg); strncpy(last, nick, sizeof(last) - 1);