commit 2c6c5c09d28ed28e7ff1e58316b8b6abf0a24c0b
parent 03fbd659ba5124eefbb6261e94c44625dbca03f3
Author: Santtu Lakkala <inz@inz.fi>
Date: Wed, 9 Mar 2022 15:21:00 +0200
Add /m => MODE
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/ii.c b/ii.c
@@ -485,6 +485,13 @@ proc_channels_input(int ircfd, Channel *c, char *buf)
w = snprintf(msg, sizeof(msg), "NICK %s\r\n", &buf[3]);
}
break;
+ case 'm': /* mode */
+ if (buflen >= 3) {
+ w = snprintf(msg, sizeof(msg), "MODE %s %s\r\n",
+ c == channelmaster ? nick : c->name,
+ &buf[3]);
+ }
+ break;
case 'l': /* leave */
if (c == channelmaster)
return;