Irc
De Linuxmemo.
(→Création d'un channel) |
(→Les modes) |
||
| Ligne 196 : | Ligne 196 : | ||
===Les modes=== | ===Les modes=== | ||
| - | + | Modes des canaux | |
| - | + | ||
i : canal accessible uniquement sur invitation (commande /invite) | i : canal accessible uniquement sur invitation (commande /invite) | ||
| - | |||
n : les messages externes ne sont pas autorisés | n : les messages externes ne sont pas autorisés | ||
| - | |||
p : canal privé; le nom du canal est invisible | p : canal privé; le nom du canal est invisible | ||
| - | |||
s : canal secret; le canal est totalement invisible | s : canal secret; le canal est totalement invisible | ||
| - | |||
t : sujet du canal uniquement modifiable par les opérateurs du canal | t : sujet du canal uniquement modifiable par les opérateurs du canal | ||
| - | |||
m : canal modéré, seuls les utilisateurs en mode verbose et les opérateurs peuvent envoyer un message | m : canal modéré, seuls les utilisateurs en mode verbose et les opérateurs peuvent envoyer un message | ||
| - | |||
c : permet d'empêcher l'utilisation de couleur d'écriture ou de fond d'écriture sur un salon. | c : permet d'empêcher l'utilisation de couleur d'écriture ou de fond d'écriture sur un salon. | ||
| - | |||
q : +q nick donne à nick le statut de propriétaire de canal, -q le retire | q : +q nick donne à nick le statut de propriétaire de canal, -q le retire | ||
| - | |||
a : +a nick donne à nick le statut de chanadmin sur le canal, -a le retire | a : +a nick donne à nick le statut de chanadmin sur le canal, -a le retire | ||
| - | |||
o : +o nick donne à nick le statut d'opérateur sur le canal, -o nick lui retire | o : +o nick donne à nick le statut d'opérateur sur le canal, -o nick lui retire | ||
| - | |||
v : +v nick met l'utilisateur nick en mode verbose. Ce mode est sans effet sans le mode +m | v : +v nick met l'utilisateur nick en mode verbose. Ce mode est sans effet sans le mode +m | ||
| - | |||
l : l nombre fixe la limite du nombre d'utilisateurs sur le canal à nombre | l : l nombre fixe la limite du nombre d'utilisateurs sur le canal à nombre | ||
| - | |||
b : +b user bannit l'utilisateur user | b : +b user bannit l'utilisateur user | ||
| - | |||
k : k key - seuls les utilisateurs connaissant la clé key pourront se connecter au canal | k : k key - seuls les utilisateurs connaissant la clé key pourront se connecter au canal | ||
| - | |||
S : +S - Les couleurs du salons sont filtrées | S : +S - Les couleurs du salons sont filtrées | ||
| - | |||
R : +R - Applique l'obligation d'être inscrit pour joindre le canal. (sur certains serveurs) | R : +R - Applique l'obligation d'être inscrit pour joindre le canal. (sur certains serveurs) | ||
| - | |||
Les modes o, v, l, b et k prennent un paramètre. | Les modes o, v, l, b et k prennent un paramètre. | ||
Modes des utilisateurs | Modes des utilisateurs | ||
| - | |||
w : reçoit tous les messages envoyés par la commande wallop | w : reçoit tous les messages envoyés par la commande wallop | ||
| - | |||
o : signifie que l'utilisateur est un opérateur IRC (à ne pas confondre avec le mode de canal o) | o : signifie que l'utilisateur est un opérateur IRC (à ne pas confondre avec le mode de canal o) | ||
| - | |||
i : invisible - en dehors de la participation commune à un canal, l'utilisateur n'est pas visible par les autres | i : invisible - en dehors de la participation commune à un canal, l'utilisateur n'est pas visible par les autres | ||
| - | |||
s : reçoit toutes les notifications du serveur | s : reçoit toutes les notifications du serveur | ||
| - | |||
x : masque son adresse IP aux yeux des autres utilisateurs (selon le serveur choisi) | x : masque son adresse IP aux yeux des autres utilisateurs (selon le serveur choisi) | ||
| - | |||
Ce sont les modes les plus courants définis par la RFC, chaque serveur IRC est libre d'ajouter autant de modes qu'il le souhaite. | Ce sont les modes les plus courants définis par la RFC, chaque serveur IRC est libre d'ajouter autant de modes qu'il le souhaite. | ||
Version du 30 janvier 2014 à 21:42
Sommaire |
Commandes serveur
Below is a table of IRC commands that have been implemented. These commands are available for compatibility, but it is probably easier to use the buttons/switches in the Userlist. The buttons in the Userlist are fully configurable.
syntax:
[] option
# any number.
message any text.
channel a name of a channel, starting with # or & (=local channel).
nick a nickname as used on IRC.
/admin [server] returns the name of the administrator of the given server. /away message marks you as being away. Typing /away again removes the away status /ban nick bans 'nick' from the current channel /bye message displays 'message' and quits IRC /broadcast message sends a message to all the channels you are on /channel channel [passwd] join a channel [with password] /cmdchar c changes the command-prefix (default /) to the given character /cping nick shows response time for 'nick' in seconds /ctcp nick command /ctcp channel command issues a CTCP (client to client protocol) command. CTCPs are used to get information from other clients, or to trigger certain actions on other clients. CTCPs /ctcp nick clientinfo for more info. /ctcp nick sound sndname plays the sound 'sndname' at 'nick's computer. Shortcut: '/sound nick' and select a sound file. /ctcp nick sound displays the list of available sounds on 'nick's computer /ctcp nick xdcc list displays the list of available files on 'nick's computer /ctcp nick xdcc version shows the xdcc version (currently 1.0) /ctcp nick xdcc send # asks 'nick' to send file number # to your computer /ctcp channel action Sends an action description. See also: /me. Example: '/me is drinking coffee' will be displayed as '* Yournick is drinking coffee' in the channel. /ctcp nick finger shows the idle time and/or email address of a user /ctcp nick source shows where to obtain Ircle. /ctcp nick version shows the (Ircle) version. /ctcp nick clientinfo shows all ctcp commands of a client. /ctcp nick userinfo displays the userinfo field of a user. /ctcp nick face exist shows if a user has a face file /ctcp nick time shows the local time of a user. /ctcp nick video stream opens a video window from the target to you. /date display date and time /dcc command nick issues a DCC command (explained below)
Valid commands for /dcc are:
/dcc chat nick requests CHAT connection for nick or answers such a request. /dcc send nick send a file /dcc tsend nick send a text file. /dcc get receive a file (to be answered to a SEND request). /dcc tget receive a text file /dcc list list all DCC connections. /dcc sendvideo nick sends a video snapshot to a selected nick /dcc sendvideostream nick sends your video stream to a selected nick /dcc sendface nick sends your face(s) to a selected nick /debug shows all low level messages in ircle Console window. use at own risk. unpredictable things may happen. for testing only. /exit message = /bye /fserve nick starts a dcc chat/fserve with nick. You will be the host /ignore pattern ignore messages from nick!user@host (may contain wildcards) /ignore -pattern removes a pattern from the ignore list (also check your Friends list in your preferences) /info gives info about server /invite nick channel invites nick to channel /ison nick shows if a user is on irc. not implemented on some servers. /join joins channel last invited to /join channel [passwd] = /channel /kick channel nick :msg kicks nick from channel with message, clicking Kick in the userwindow does the same. Option click lets you set a kick message. /leave channel leave a channel, same as closing a channel window /links show server connections /links mask shows all servers matching mask /list list channels. Note: on some servers you'll get disconnected because of the large amount of data /list generates. You may use wildcards in the List window. Example: *mac* /list -min # list only channels with minimum of # users /list -max # list only channels with maximum of # users /list -public list only public channels /list -private list only private channels /list -local list only local channels (channels available on this server only) /list -global list only global channels (channels available on all servers of this network) /list -topic list only channels with topic set /list -mask- list only channels matching 'mask', for instance /list -*mac* /lusers display statistics: the number of users on this irc network and the number of channels. /map displays a map of all server connections (not supported on all networks) /massop gives operator status to everyone on a channel /massdeop removes operator status from everyone but you on a channel /massunban removes all bans from a channel /me action sends an action description, can also be used in a DCC Chat window (private action). shortcut: Option Return Key. /mode channel parm set channel mode: /mode channel +p private channel /mode channel +s secret channel /mode channel +i invite-only channel /mode channel +m moderated channel, noone can speak except users with mode +v /mode channel +n no messages from outside channel /mode channel +t topic may only be set by a channel operators /mode channel +l # # channel may hold at most # users /mode channel +v nick nick let nick speak on moderated channel (voice) /mode channel +b shows ban list. Not implemented on some servers. /mode channel +b nick!username@hostname ban nick!user@host, wildcards (*,?) allowed /mode channel +k password key set channel password /mode channel +o nick nick becomes channel operator -x removes flag x, where x is one of the above You can also you the switches in the serlist window for this. /mode nick parm set user mode: /mode nick +i invisible user, recommended to prevent spam. You can also set this mode in the Connections Window /mode nick +s receive server notices. Normally off. You can also set this mode in the Connections Window /mode nick +w receive wallops (messages from IRC operators). You can also set this mode in the Connections Window /mode nick +o become IRC operator. Normally this is done by the /oper command. /mode nick +d deaf mode, for bots only. /motd [server] show message-of-the-day [of another irc server] /msg nick message sends nick a private message. Pressing TAB automatically sets the inputline to /MSG and the nickname that last sent you a message. Ircle remembers up 10 nicks for 15 minutes after the last activity. /names channel list users on channel /nick newnick change your nickname /note unknown /notice user|channel msg (almost) like /msg /notify show notify list. You may also use the Notify Window to add/edit/delete nicks. /notify nick adds nick to notification list (show each signon/off). You may also use the Notify Window to add/edit/delete nicks. /notify -nick removes nick from notification list. You may also use the Notify Window to add/edit/delete nicks. /omsg text send a message to all channel operators on a channel. On some servers ircle may send a /wallchops command instead, when available. /onotice text send a notice to all channel operators on a channel /op nick gives nick operator status /deop nick removes operator status from nick /part channel = /leave /ping pings a user. to measure the delay use /cping /quote raw irccommand sends a command to an irc server, exactly as typed. /query nick open window for private messages to nick /quit message = /bye /server hostname [port] switch to a different server /silence show ignored users list. /silence is a server side ignore. ignores are checked by the server, not the client. /silence mask ignores users with selected mask /signoff message = /bye /sound channel soundname plays soundname to the channel /sound nick soundname plays soundname to nick /stats show statistical info: /stats b shows server ban list /stats c returns a list of servers which the server may connect to or allow connections from /stats h returns a list of servers which are either forced to be treated as leaves or allowed to act as hubs /stats i returns a list of hosts which the server allows a client to connect from /stats k returns a list of banned username and hostname combinations for that server /stats l returns a list of the server connections, showing how long each connection has been established and the traffic over that connection in bytes and messages for each direction /stats m returns a list of commands supported by the server and the usage count for each if the usage count is non zero /stats o returns a list of hosts from which normal clients may become operators /stats p ? /stats s ? /stats t ? /stats u returns a string showing how long the server has been up /stats y show Y (Class) lines from the server configuration file /summon user@host invites user@host to IRC (host must be running a server) obsolete?? /time = /date /topic channel text set a channel topic (clicking in the title bar of a channel lets you achieve the same) /trace [user] shows which servers are being used to connect to user /type type a text file to the current channel /unban opens the unban dialog, allowing to view and unban hosts with a simple click. /unban nickmask removes 'mask (nick!username@hostname) from the channel ban list /users (x) /version show server version /video opens your video window /who channel list people on channel /whois give information about nick that last joined the channel or sent private message /whois nick give information about nick /whowas nick give information about nick no longer online
IRC Operator commands:
/connect target port Force the remote server to try establishing a new server connection to the target server, on the specified port. /die Used by IRC operators to force the server to exit and cease activity. /hash reconfigure a server /host /kill nick comment The KILL message is used to cause a client-server connection to be closed by the server which has the actual connection. KILL is used by servers when they encounter a duplicate entry in the list of valid nicknames and is used to remove both entries. It is also available to operators. /oper nick password Used by a normal user to gain operator privileges. /rehash Used by IRC operators to force the server to re-read its configuration file. /restart Used by IRC operators to force the server to restart. /squit server comment Close a server connection. /uping unknown /wallops message message to all operators (deprecated)
DCC (Direct Client-to-Client)
Le protocole DCC est un un protocole semi-encapsulé dans le protocole CTCP. Il permet à deux clients IRC de communiquer directement sans passer par le serveur.
DCC <type> <argument> <adresse> <port> [<size>] Description des arguments
- type : CHAT pour ouvrir une connexion destinée à la discussion, ou SEND pour transférer un fichier.
- argument : chat dans le cas d'une connexion CHAT, le nom du fichier dans le cas d'un transfert de fichier.
- adresse : représentation ASCII de l'adresse IP du client proposant la connexion DCC, envoyée en tant qu'entier sur quatre octets.
- port : représentation ASCII du numéro de port sur lequel le client attend la connexion DCC venant du client à qui la connexion a été proposée.
- size : dans le cas d'un connexion SEND, représentation ASCII de la taille du fichier envoyé (en octets), en tant qu'entier sur quatre octets.
Création et administration
Création d'un channel
/join #nom_nouveau_channel /msg nickserv REGISTER <password> <email> /msg NickServ help /msg NickServ SET HIDE EMAIL ON /nick <alternate_nick> /msg nickserv group nick <password> /msg nickserv info nick all
Les modes
Modes des canaux
i : canal accessible uniquement sur invitation (commande /invite) n : les messages externes ne sont pas autorisés p : canal privé; le nom du canal est invisible s : canal secret; le canal est totalement invisible t : sujet du canal uniquement modifiable par les opérateurs du canal m : canal modéré, seuls les utilisateurs en mode verbose et les opérateurs peuvent envoyer un message c : permet d'empêcher l'utilisation de couleur d'écriture ou de fond d'écriture sur un salon. q : +q nick donne à nick le statut de propriétaire de canal, -q le retire a : +a nick donne à nick le statut de chanadmin sur le canal, -a le retire o : +o nick donne à nick le statut d'opérateur sur le canal, -o nick lui retire v : +v nick met l'utilisateur nick en mode verbose. Ce mode est sans effet sans le mode +m l : l nombre fixe la limite du nombre d'utilisateurs sur le canal à nombre b : +b user bannit l'utilisateur user k : k key - seuls les utilisateurs connaissant la clé key pourront se connecter au canal S : +S - Les couleurs du salons sont filtrées R : +R - Applique l'obligation d'être inscrit pour joindre le canal. (sur certains serveurs)
Les modes o, v, l, b et k prennent un paramètre.
Modes des utilisateurs
w : reçoit tous les messages envoyés par la commande wallop o : signifie que l'utilisateur est un opérateur IRC (à ne pas confondre avec le mode de canal o) i : invisible - en dehors de la participation commune à un canal, l'utilisateur n'est pas visible par les autres s : reçoit toutes les notifications du serveur x : masque son adresse IP aux yeux des autres utilisateurs (selon le serveur choisi)
Ce sont les modes les plus courants définis par la RFC, chaque serveur IRC est libre d'ajouter autant de modes qu'il le souhaite.