Nico Golde <nion@wmii.de>

This commit is contained in:
nion@noname 2005-12-27 00:08:44 +01:00
parent bcda412c5d
commit 1f044f1d1b

5
ii.c
View File

@ -193,7 +193,10 @@ static void proc_fifo_input(int fd, char *buffer)
case 'a': case 'a':
snprintf(buf, PIPE_BUF, "-!- %s is away \"%s\"", nick, &buffer[3]); snprintf(buf, PIPE_BUF, "-!- %s is away \"%s\"", nick, &buffer[3]);
print_out(fifo[fd], buf); 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; break;
case 'm': case 'm':
p = strchr(&buffer[3], ' '); p = strchr(&buffer[3], ' ');