From 834c85d80914007e31657d12d2f22a9cb2cd8624 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 14 Feb 2026 00:05:36 +0300 Subject: Add support for voice and +m channel mode So now voices in code are not that useless. Also, code was fixed for their printing as it is valid for a user to be both an oper and voiced --- channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'channel.c') diff --git a/channel.c b/channel.c index f2da302..1b3024b 100644 --- a/channel.c +++ b/channel.c @@ -96,7 +96,7 @@ channel_modes_parse(const struct Message *msg) { for (m = msg->params[i]+1; *m; ++m) switch (*m) { - break; case 'o': + break; case 'o': case 'v': /* since all flags are ASCII (< 128) bit 7 * can be and is abused for the set flag */ if (queue_r == lengthof(queue)) @@ -105,7 +105,7 @@ channel_modes_parse(const struct Message *msg) return modes; } queue[queue_r++] = (set << 7) | *m; - break; case 'n': case 's': case 't': + break; case 'm': case 'n': case 's': case 't': modes[modes_c].mode = *m; modes[modes_c++].set = set; break; default: -- cgit 1.4.1