ii

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

commit 57a6df937c80ae960d6c5da712a86c7674d5ed40
parent 1f044f1d1b40a80acf655f9d9c31861d91c4ca4e
Author: nion@noname <unknown>
Date:   Tue, 27 Dec 2005 23:13:36 +0100

Nico Golde <nion@wmii.de>
fixed away bug

Diffstat:
Mii.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ii.c b/ii.c @@ -193,7 +193,7 @@ 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); - if(&buffer[3] == nil) + if(buffer[2] == 0) snprintf(buf, PIPE_BUF, "AWAY\r\n"); else snprintf(buf, PIPE_BUF, "AWAY :%s\r\n", &buffer[3]);