Mode Setting for Channels and Users

Syntax:   /MODE #channel|nick [[+|-]modeflag [parameters]]

/MODE Flag Description
b [user]This bans a user in nick!user@host form. Obtaining the user address is available by typing /whois [nick] and adding asterisks where dynamic areas are in the user@host. For example, to place a channel ban on all nicks with the user id 'benice' connected from any location using xyz network, you would type: /mode #channel +b *!benice@*.xyz.net
iChannel is set to invite-only.  Only users who are invited by a channel operator can join the channel.
k [key]This sets a key on the channel.  Only users typing /join #channel [key] can join the channel.  It acts as a password. For example, to set a key 'OpenSaysMe' for #channel type: /mode #channel +k OpenSaysMe
l [number]Channel is limited to max number of users.  If this number is exceeded, they cannot join the channel.  For example, to set a channel allowing only 25 users type, /mode #channel +l 25
mChannel is moderated.  Only user with operator flags (@ with their nicks) and voice flags (+ with their nicks) can talk in a moderated channel.  See 'v' on setting voice mode and 'o' on setting operator mode.
nNo external messages to channel are allowed.  When you are not in a channel, you can still send messages to it, by typing /msg #channel some_text.  The /mode #channel +n prevents outside users sending messages inside channel.
o [nick]Makes nick a channel operator.  For example, /mode #channel +o user52 gives the nick 'user52' on #channel operator status.
pChannel is private.  When a /whois nick is performed on anyone in a private channel, the channel will not be displayed in the /whois result.
sChannel is secret.  This channel does not show up in a channel listing.  It also acts as a private channel when typing /whois nick
tTopic is locked and limited.  Only channel operators can set and change topics using /topic #channel [text]
v #channel [nick]Gives a user voice on a moderated channel.  This user can chat when the channel is set to +m and when banned.  Example: /mode #channel +v nick and type /mode #channel -v nick to remove voice so nick cannot chat on channel.