Previous Next Table of Contents

4. Basic Commands

A little words about IRC

IRC clients

IRC is based on a client-server model. Clients are programs that connect to a server, a server is a program that transports data, (messages), from a user client to another.
Each client is distinguished from other clients by a unique nickname. In addition to the nickname, all servers must have the following information about all clients: the real name of the host that the client is running on, the username of the client on that host, and the server to which the client is connected. Keirc is one of the IRC client program.

Channels

The channel is created implicitly when the first client joins it, and the channel ceases to exist when the last client leaves it. While channel exists, any client can reference the channel using the name of the channel.
Channels names are strings (beginning with a '&' or '#' character) of length up to 200 characters. Apart from the the requirement that the first character being either '&' or '#'; the only restriction on a a comma (',').
There are two types of channels allowed on IRC. One is a distributed channel which is known to all the servers that are connected to the network. These channels are marked by the first character being a only clients on the server where it exists may join it. These are distinguished by a leading '&' character. To create a new channel or become part of an existing channel, a user is required to JOIN the channel. If the channel doesn't exist prior to joining, the channel is created and the creating user becomes a channel operator. If the channel already exists, whether or not your request to JOIN that channel is honoured depends on the current modes of the channel. For example, if the channel is invite-only, (+i), then you may only join if invited.

Channel Operators

The channel operator (also referred to as a "chop" or "chanop") on a given channel is considered to 'own' that channel. In recognition of this status, channel operators are endowed with certain powers which enable them to keep control and some sort of sanity in their channel. As an owner of a channel, a channel operator is not required to have reasons for their actions, although if their actions are generally antisocial or otherwise abusive, it might be reasonable to ask an IRC operator to intervene, or for the usersjust leave and go elsewhere and form their own channel.

The commands which may only be used by channel operators are:

A channel operator is identified by the '@' symbol next to their nickname whenever it is associated with a channel (ie replies to the NAMES, WHO and WHOIS commands).

Basic Commands on keirc

Connection Registration

PASS passwd
NICK nick
USER
OPER
QUIT
SQUIT

Channel operations

JOIN
PART
MODE
TOPIC
NAMES
LIST
INVITE
KICK

Server queries and commands

VERSION
STATS
LINKS
TIME
CONNECT
TRACE
ADMIN
INFO
PRIVMSG
NOTICE
WHO
WHOIS
WHOWAS

Miscellaneous messages

KILL
PING
PONG

Optionals

AWAY
REHASH
RESTART
SUMMON
USERS
WALLOPS
USERHOST
ISON
RAW
CTCP
CTCPREPLY
DCC

Extended Commands on keirc

BROWSER
  • This command is used to comunicate with netscape browser
  • Example: /browser openFile(/home/ftp/file.html)


  • TCL
  • This command is used to call tcl proc
  • Example: /tcl addfriend *!*lesehan@localhost 100 *


  • ADDPAGE
  • This command creates a new windowpage, name is used to ident the window
  • If windowpage with this name is already existed, windowpage will not be created
  • Example: /addpage pagename


  • DELPAGE
  • This command is used to remove windowpage, that is created using addpage
  • Example: /delpage pagename


  • ADDFRIEND
  • Add user to friendlist with level 'level' on channel 'channel'
  • user can be masked with wildcard, e.g. *!*user@host
  • level is positive number
  • channel can be wildcard *
  • Example: /addfriend *!*user@*duisburg.de 100 *


  • DELFRIEND
  • This command is used to remove frienditem from friendlist, created by addfriend
  • Example: /delfriend *!*@*duisburg.de


  • ADDBAN
  • Like addfriend
  • Example: /addban *!*user@*duisburg.de 100 *


  • DELBAN
  • Like delfriend
  • Example: /delban *!*@*duisburg.de


  • ADDIGNORE
  • This command is used to ignore user on event 'flag' for 'seconds' seconds
  • If seconds is 0, user will be ignored permanent
  • Example: /addignore *!*@*duisburg.de pcntfs 120
  • flags are strings, and maybe contains pcntfs

  • DELIGNORE
  • This command is used to remove ignoreitem from ignorelist, created by addignore
  • Example: /delignore *!*@*uni-duisburg.de


  • SHOW
  • This command is used to show dialog, defined on kEirc
  • Example: show ChannelDialog
  • The valid dialogs defined on kEirc:
    LOAD
  • This command is used to load the new tcl script
  • If loaded file beginnt with '/' , absolute pathname will be used to load script, othercase TclScriptDir will be used as base directory
  • Example: /load lesehan.tcl


  • SERVER
  • This command will be used to connect or to change connection to new server
  • Format: server host port passwd info
  • If there is no entry for this host, the new host will be added to serverlist
  • Example: /server de.undernet.org 6667 passwd UNDERNET SERVER

  • Internal Variables defined on keirc

    You can use these Variables in the configuration (e.g in popup)
      [Popup] CTCP
      Ping:    /ctcp $u PING $time
      Version: /ctcp $u VERSION
      ...
    
    $nick     your current nick
    $u        current user...(selected user from userlist on channel, or user, you talk to)
    $time     current time in millisecond  
    $c        current channel 
    $to       user, you talk to (examp. on privmessage) 
    $?Komentar on topic:  force dialog
    $selected text selected on OutputPage
    

    Previous Next Table of Contents