MODE *|<channel> [+|-]b [
Mode command is quite complicated and it allows channel
operators to change channel mode, or any user to change
their personal mode. For a channel mode, <modechars> is one of
the following:
i - channel is invite only
k <key> - Adds join key
A + or - sign determines whether the specified mode should be
added or deleted.
If you supply * as channel name, modes will apply to your current channel.
The form which takes user!nick@host is special in that
it needs specifying a sting of the form nick!user@host.
Banning examples:
mode #MyChannel +b *!*@gus.*
bans everybody from the channel who is on IRC from any
machine whose name is gus.
mode #MyChannel +b netw1z
bans anybody using the nickname netw1z.
mode #MyChannel +b *!merklin@*
bans anybody whose user name is merklin.
mode #MyChannel +b jerk!tug@boat.edu
bans the user tug@boat.edu from the channel whenever he
is using the nickname "jerk".
You can list the bans in effect on a channel:
mode #MyChannel b
With the same way, you can list invite-exceptions on a channel:
mode #MyChannel I
And ban exceptions:
mode #MyChannel e
The third form of the MODE command allows you to modify your
personal parameters. You can precede any combination of the
following with + or - (+to switch that mode on, - to switch it off).
o - IRC operator status. You may not turn this on
with mode. To assert operator status, you must use oper
w - Receive wallops (messages directed at all operators.
see wallops.
s - Receive server notices. This includes kill notices
and notices about what is happening with links
to the local server.
i - Render yourself invisible. This prevents you from
being seen in who and whois information, unless
somebody specifies your exact nickname with whois.
This is quite useful, because it often let's you
"idle in peace" without getting harmed by mass
advertisers etc.
Note:
Attempting to avoid a ban placed on you may result in
forcible removal from IRC or being banned from your server.