Skip to content

Instantly share code, notes, and snippets.

@vmbrasseur
Last active December 18, 2016 21:03
Show Gist options
  • Save vmbrasseur/29f10ba4f7bc20e902d67d27680907d2 to your computer and use it in GitHub Desktop.
Save vmbrasseur/29f10ba4f7bc20e902d67d27680907d2 to your computer and use it in GitHub Desktop.
IRC Cheatsheet for osdc

Basic Commands

  • /msg NickServ REGISTER password [email protected]: Registers your IRC nickname with the NickServ service, protecting it from use by other people. This command will register the nickname you are using at the time you run the command. It is only necessary to do this once per nickname.
  • /msg NickServ IDENTIFY nick password: Logs you in (aka "identifies" you) as nick using password. Identifying is optional but advisable as some commands require identification.
  • /list: Displays a list of all of the channels which currently exist on an IRC network.
  • /join channelname: Joins you to the IRC channel channelname. If channelname does not exist yet, one will be created
  • /msg nick: Starts a private message session to nick.
  • /query nick: An alternate form of /msg nick.
  • /me action: Displays a message in which you appear to perform the action.
  • /away message: Sets an away status on your nickname with the associated and optional message providing additional information (i.e.: "Back after lunch"). Sending the /away command again will remove the status.
  • /who nickname: Presents more information about nickname. The information presented is limited to what nickname chooses to share.
  • /whois nickname: Similar to the /who command.
  • /leave channelname: Removes you from the IRC channel channelname. The channelname is optional if the command is run in the channel you wish to leave.
  • /quit: Disconnects you from the IRC network.
  • /help: Used alone, presents a list of possible help topics. Followed by the name of one of those topics, presents additional usage information for the selected topic.

Intermediate Commands

  • /motd: Displays the message of the day (motd) for the current server/network.
  • /topic: Displays the topic for the current channel.
  • /topic TopicText: Sets the channel topic to TopicText.
  • /ignore nick: Ignore all messages (including private messages) from the specified nickname.

Advanced Commands

Grouping Nicknames:

  1. /nick NicknameToAddToGroup: Change to use the nickname you'd like to add to a group.
  2. /msg NickServ GROUP RegisteredNickname PasswordForRegisteredNickname: Add the currently used nickname to the group associated with your registered nickname.

Registering a Channel

  1. Be logged in on a registered nick.
  2. Create the channel (see /join above).
  3. /msg ChanServ REGISTER channelname: Registers channelname with the ChanServ service. channelname must include any leading hashmarks (# or ##).

Changing channel modes

  1. Not all networks support the same channel modes. Please review the documentation for your network before proceeding. For instance, these are the channel modes available on Freenode.
  2. /mode channel: View the existing modes set on the channel.
  3. /mode channel +MODECODE: Add the mode denoted by MODECODE to the channel.
  4. /mode channel -MODECODE: Remove the mode denoted by MODECODE from the channel.

Setting user modes

  1. Not all networks support the same user modes. Please review the documentation for your network before proceeding. For instance, these are the user modes available on Freenode.
  2. User modes apply per-session and will disappear when you logout. Most IRC clients can set modes at login time.
  3. Unless you are a network admin, you cannot change modes on other users/nicknames than your own.
  4. /mode nick: View the existing modes for that nickname.
  5. /mode nick +MODECODE: Add the mode denoted by MODECODE to the nickname.
  6. /mode nick -MODECODE: Remove the mode denoted by MODECODE from the nickname.

Assigning operator status

  1. Make sure the nickname you'd like to authorize is registered.
  2. You must be an operator or owner of the channel in order to assign operator status to another user.
  3. /msg ChanServ OP channel nick: Assign operator status on channel channel to user nick.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment