add output of non-message line - lchat - A line oriented chat front end for ii. | |
git clone git://git.suckless.org/lchat | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 2580f7cedbb1cc603e92cc09235be2f6385dd2a4 | |
parent ec8b3f85b73d80724d0ac489e19b2fd6b3c5e2d8 | |
Author: Jan Klemkow <[email protected]> | |
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(-) | |
--- | |
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 */ | |