Nico Golde <nion@wmii.de>

fixed away bug
This commit is contained in:
nion@noname 2005-12-27 23:13:36 +01:00
parent 1f044f1d1b
commit 57a6df937c
1 changed files with 1 additions and 1 deletions

2
ii.c
View File

@ -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]);