MGranatels / IRC

4 stars 1 forks source link

MODE action #36

Open gabriela-freitas opened 1 year ago

gabriela-freitas commented 1 year ago

The "MODE" command in IRC (Internet Relay Chat) is used to change or query various modes of a channel or user. It allows channel operators and IRC administrators to modify certain settings and privileges for a channel.

To change the channel's mode, the MODE command is used with the appropriate parameters. The MODE command follows this format:

MODE <channel> <mode> [<mode_parameter>]

Here's how the MODE command is used to change specific channel modes:

MODE #channel +i  // Set invite-only mode
MODE #channel -i  // Remove invite-only mode
MODE #channel +t  // Set topic restrictions
MODE #channel -t  // Remove topic restrictions
MODE #channel +k <password>  // Set channel key
MODE #channel -k  // Remove channel key
MODE #channel +o <nickname>  // Give channel operator privilege to a user
MODE #channel -o <nickname>  // Take channel operator privilege from a user
MODE #channel +l <limit>  // Set user limit
MODE #channel -l  // Remove user limit

Keep in mind that changing the channel's mode typically requires channel operator privileges (mode "+o"). It's essential to use the MODE command responsibly and follow the rules and guidelines set by the channel and the IRC network.

gabriela-freitas commented 1 year ago

.