add output of non-message line - lchat - A line oriented chat front end for ii.
(HTM) git clone git://git.suckless.org/lchat
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2580f7cedbb1cc603e92cc09235be2f6385dd2a4
(DIR) parent ec8b3f85b73d80724d0ac489e19b2fd6b3c5e2d8
(HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 13 May 2018 02:55:43 +0200
add output of non-message line
Diffstat:
M filter/indent.c | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/filter/indent.c b/filter/indent.c
@@ -37,6 +37,11 @@ main(void)
}
nick = strsep(&next, ">");
+ if (next == NULL) {
+ fputs(buf, stdout);
+ fflush(stdout);
+ continue;
+ }
nick++; /* skip '<' */
next++; /* skip space */