IRC Commands

From Digibase Knowledge Base
Jump to: navigation, search

This is a basic IRC command listing and explanation of what each does, the format of this list is to think of what you need to do. If there are multiple entries for a single heading, you can try one of each to see what works best for you

Parameter list:

  • <name> = a nick
  • <channel> = a channel
  • <password> = a password that you select or have selected
  • <reason> = a reason for that action, may be displayed to another party
  • <mask> = a usermask, in the format of <name>!<ident>@<host>
  • <addr> = an IP address
  • <host> = a valid hostname or masked name, depending on context.
  • <ident> = a user field as presented by an IRC client, not the same as <name>.
  • <server> = a server name, may be remote or local, may not make sense to use local in certain circumstances.

Also note, if there is a mode that is +, it can be undone by switching it to - (e.g. -s undoes an +s).

User

Join a Channel

/join <channel> 

Change Your Name

/nick <newname> 

Find out who someone is

/whois <name> 

Register with Nickserv

/nickserv identify <password> 

This will protect your name from other using it.

Identify to Nickserv

/nickserv identify <password> 

Disconnect your Dead Connections or Impersonators

/nickserv ghost <name> <password> 

This will have a similar effect as an IRC Operator/Administrator kill.

Change your Password

/nickserv set password <password> 

You will need to identify first.

Display a list of Channels

/list

Channel Operator

Kick a User

/kick <name> <reason> 

This removes the user from the current channel temporarily, they may automatically rejoin

Ban a User

/whois <name>
/mode <channel> +b <mask>

The first command permits you to grab the mask, it is recommended for general users to grab the part after '@' and formulate it as: *!*@<mask>, using that as the mask. if mibbit [insert mibbit link]

Unban a user

/mode <channel> +b
/mode <channel> -b <mask>

The first will generate a ban list you can check against (note the no parameters), if you know the mask you don't need to do that step, the second command will perform the unban

Only Nickserv Registered Names can join

/mode <channel> +R

Set the Channel to require invites

/mode <channel> +i

Channel Operators will have to use:

/invite <name>

to invite people into the channel.

Set the Channel to Strip Colours from Messages

/mode <channel> +S

Set the Channel to Drop Coloured Messages

/mode <channel> +c

Set the Channel to not be on the Public List

/mode <channel> +s

Set permissions

Permission flags may be any of:

  • v / + = voice, may speak when channel is +m
  • h / & = halfop, may manage users in the channel
  • o / @ = channel operator, may manage user and channel resources
  • a / & = channel admin
  • q / ~ = channel owner
/mode <channel> +<flag> <name>

Note: To set, you will require permissions equal or higher than the level you are trying to set (e.g. +o can set +v, but +o cannot set +a)

IRC Operation

Server Ban a User (based on name/hostmask)

/kline <name> <time> <reason> 

Server Ban a User (based on IP)

/zline <name> <time> <reason> 

Get the list of Server bans

/kline

Get the list of Server IP Bans

/zline

Remove a Ban

/<command> -<mask or addr>

or

/raw <command> -<mask or addr>

IRC Administration

Network Ban a User (based on name/hostmask)

/gline <name> <time> <reason> 

Network Ban a User (based on IP)

/gzline <name> <time> <reason> 

Get the list of Network Bans (name/hostmask)

/gline

Get the list of Network Bans (IP)

/gzline

Remove a Ban

/<command> -<mask or addr>

or

/raw <command> -<mask or addr>

Disconnect a Server (permit automatic reconnection)

/squit <server>

Disconnect a Server (more than 1 minute)

/squit <server>
/operserv jupe <server>

First command disconnects, second prevents reconnection by introducing a fake server with that name to the network so it's thought that server exists so no automatic healing mechanisms attempts reconnect.

Allow a Server to reconnect

/squit <server>

This will remove the fake server.