eel

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

commit 3aa62afd953fec508c9506a58e7c134c2c96580f
parent 3e6e8ddf8814ef85920d18443acc51e9b9d28932
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  6 Jun 2018 00:40:58 +0200

line is valid even if there is no message part

Diffstat:
Meel.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eel.c b/eel.c @@ -65,8 +65,10 @@ parse_msg(char *str, time_t *time, char **nick, char **msg) *str++ = '\0'; for (*nick = str; *str != ' '; str++) - if (*str == '\0') - return -1; + if (*str == '\0') { + *msg = ""; + return 0; + } *str = '\0'; *msg = str + 1;