ii

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

1f044f1d1b40a80acf655f9d9c31861d91c4ca4e

Author: nion@noname on 12/27/2005

Committer: nion@noname on 12/27/2005

Nico Golde <nion@wmii.de>

Stats

ii.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index 215cb68..bff5c84 100644
--- 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], ' ');