ii

My fork of https://tools.suckless.org/ii/
git clone https://git.inz.fi/ii
Log | Files | Refs | README | LICENSE

commit 1f044f1d1b40a80acf655f9d9c31861d91c4ca4e
parent bcda412c5dedfd2b522d471659ca83de2aedf827
Author: nion@noname <unknown>
Date:   Tue, 27 Dec 2005 00:08:44 +0100

Nico Golde <nion@wmii.de>

Diffstat:
Mii.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ii.c b/ii.c @@ -193,7 +193,10 @@ static void proc_fifo_input(int fd, char *buffer) case 'a': snprintf(buf, PIPE_BUF, "-!- %s is away \"%s\"", nick, &buffer[3]); print_out(fifo[fd], buf); - snprintf(buf, PIPE_BUF, "AWAY :%s\r\n", &buffer[3]); + if(&buffer[3] == nil) + snprintf(buf, PIPE_BUF, "AWAY\r\n"); + else + snprintf(buf, PIPE_BUF, "AWAY :%s\r\n", &buffer[3]); break; case 'm': p = strchr(&buffer[3], ' ');