summary refs log tree commit diff
path: root/channel.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-12 21:19:11 +0300
committerNakidai <nakidai@disroot.org>2026-02-12 21:19:11 +0300
commite76511e37e906c73d61aa65ec27efd9f060bf1a3 (patch)
treec5a4c38987c327f97ca386c81779d32a605ae0e9 /channel.c
parentec97c603288869efad52ed7235ae770f85a9d7e8 (diff)
downloadlibreircd-e76511e37e906c73d61aa65ec27efd9f060bf1a3.tar.gz
libreircd-e76511e37e906c73d61aa65ec27efd9f060bf1a3.zip
Add support for n channel flag
It's a flag that restricts a set of users able to write to a channel to
those who joined. If not, reply 442 is sent upon PRIVMSG
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index d04f3cc..2717e5e 100644
--- a/channel.c
+++ b/channel.c
@@ -105,7 +105,7 @@ channel_modes_parse(const struct Message *msg)
 				return modes;
 			}
 			queue[queue_r++] = (set << 7) | *m;
-		break; case 's':
+		break; case 'n': case 's':
 			modes[modes_c].mode = *m;
 			modes[modes_c++].set = set;
 		break; default: