diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-14 00:05:36 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-14 00:20:38 +0300 |
| commit | 834c85d80914007e31657d12d2f22a9cb2cd8624 (patch) | |
| tree | 283ed0dacb635b97f93c21c8b0b94b6116ca29a3 /channel.c | |
| parent | 15151c88a7eb381fb5b46daaf521fc609d40539c (diff) | |
| download | libreircd-834c85d80914007e31657d12d2f22a9cb2cd8624.tar.gz libreircd-834c85d80914007e31657d12d2f22a9cb2cd8624.zip | |
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
Diffstat (limited to 'channel.c')
| -rw-r--r-- | channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |