IRC Commands

From Digibase Knowledge Base
Revision as of 16:32, 12 April 2014 by Kradorex Xeron (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: Please note these are often specific to the command you are running, so be sure to understand the parameter in context.

  • <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.
  • <message> = a message of your choosing

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> 

Private Message Someone

/msg <name> <message>

or

/query <name>

or

/query <name> <message>

Register with Nickserv

/nickserv register <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

Only attempt these commands if you have permission and authorization.

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, see Banning Abusive Mibbit Users

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> <channel>

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). Undoing permissions is just a matter of changing + to -.

IRC Operation

Only attempt these commands if you have permission and authorization.

Gain Operator/Administrator Privileges

/oper <oper-user> <oper-password> 

Server Ban a User (based on name/hostmask)

/kline <name> <time> <reason> 

If Mibbit, see Banning Abusive Mibbit Users

Server Ban a User (based on IP)

/zline <name> <time> <reason> 

Do not use this on Mibbit users

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

Only attempt these commands if you have permission and authorization.

Network Ban a User (based on name/hostmask)

/gline <name> <time> <reason> 

If Mibbit, see Banning Abusive Mibbit Users

Network Ban a User (based on IP)

/gzline <name> <time> <reason> 

Do not use this on Mibbit users

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.