opensource-force / ircd

A minimal IRC server
17 stars 1 forks source link

Feature: Channel Modes 4.2.3.1 #26

Open DitchTurtL opened 11 months ago

DitchTurtL commented 11 months ago

Channel modes

The MODE command is provided so that channel operators may change the characteristics of `their' channel. It is also required that servers be able to change channel modes so that channel operators may be created.

DitchTurtL commented 11 months ago

The various modes available for channels are as follows:

       o - give/take channel operator privileges;
       p - private channel flag;
       s - secret channel flag;
       i - invite-only channel flag;
       t - topic settable by channel operator only flag;
       n - no messages to channel from clients on the outside;
       m - moderated channel;
       l - set the user limit to channel;
     b - set a ban mask to keep users out;
       v - give/take the ability to speak on a moderated channel;
       k - set a channel key (password).

When using the 'o' and 'b' options, a restriction on a total of three per mode command has been imposed. That is, any combination of 'o' and

DitchTurtL commented 11 months ago

MODE #Finnish +im ; Makes #Finnish channel moderated and 'invite-only'.

MODE #Finnish +o Kilroy ; Gives 'chanop' privileges to Kilroy on

                            channel #Finnish.

MODE #Finnish +v Wiz ; Allow WiZ to speak on #Finnish.

MODE #Fins -s ; Removes 'secret' flag from channel

Fins.

MODE #42 +k oulu ; Set the channel key to "oulu".

MODE #eu-opers +l 10 ; Set the limit for the number of users on channel to 10.

MODE &oulu +b ; list ban masks set for channel.

MODE &oulu +b !@* ; prevent all users from joining.

MODE &oulu +b !@.edu ; prevent any user from a hostname matching .edu from joining.

DitchTurtL commented 11 months ago

Data structures updated.

Next steps: