--- ii.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ii.c b/ii.c index 6320123..3928c33 100644 --- a/ii.c +++ b/ii.c _AT_@ -397,6 +397,15 @@ proc_channels_input(int ircfd, Channel *c, char *buf) { channel_leave(c); return; break; + case 'q': /* quit */ + if(buflen >= 3) + snprintf(msg, sizeof(msg), "QUIT %s\r\n", &buf[3]); + else + snprintf(msg, sizeof(msg), + "QUIT %s\r\n", "leaving"); + writestr(ircfd, msg); + return; + break; default: /* raw IRC command */ snprintf(msg, sizeof(msg), "%s\r\n", &buf[1]); break; -- 2.4.10 --Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE Content-Type: text/x-diff; name="0050-raw-IRC-output-to-stdout.patch" Content-Disposition: attachment; filename="0050-raw-IRC-output-to-stdout.patch" Content-Transfer-Encoding: 7bitReceived on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST