ii

git clone https://orangeshoelaces.net/git/ii.git

57a6df937c80ae960d6c5da712a86c7674d5ed40

Author: nion@noname on 12/27/2005

Committer: nion@noname on 12/27/2005

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

Stats

ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index bff5c84..1dce151 100644
--- 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]);