1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Syntax documentation rewrite for C-commands

Rewrote the syntax documentation for all the commands starting with the
letter C.
This commit is contained in:
Geert Hauwaerts 2014-07-03 17:41:15 +02:00
parent fd3676e407
commit 3f79c8553c
8 changed files with 158 additions and 73 deletions

View File

@ -1,8 +1,21 @@
Syntax:
@SYNTAX:cat@
Outputs the contents of the specified file. Equivalent to
UNIX 'cat' command.
Parameters:
See also: CD
The file to display.
Description:
Displays the contents of the specified file into the active window.
Examples:
/CAT /etc/network/interfaces
/CAT /home/mike/unicorns.txt
/CAT kitties.txt
See also: CD, EXEC

View File

@ -1,8 +1,21 @@
Syntax:
@SYNTAX:cd@
Changes the current working directory. Equivalent to UNIX
'cd' command.
Parameters:
See also: DCC GET
The directory to change into.
Description:
Changes the current active directory.
Examples:
/CD /home/public_ftp
/CD /home/mike
/CD /var/log
See also: CAT

View File

@ -1,35 +1,39 @@
Syntax:
@SYNTAX:channel@
Irssi can automatically join to specified channels in specified
IRC networks. It can also automatically send the password when
manually joining to channel without specifying the password.
Parameters:
/CHANNEL ADD [-auto | -noauto] [-bots <masks>] [-botcmd <command>]
<channel> <network> [<password>]
LIST: Displays the list of configured channels.
ADD: Adds a channel to your configuration.
REMOVE: Removes a channel from your configuration.
With -bots and -botcmd arguments you can automatically send
commands to someone in channel. This is useful for automatically
getting ops for channels, for example
-auto: Automatically join the channel.
-noauto: Don't join the channel automatically.
-bots: The list of hostnames send automated commands to.
-botcmd: The automated commands to perform.
/CHANNEL ADD -auto -bots "*!bot@bothost.org bot*!*@host2.org"
-botcmd "msg $0 op mypass" #channel ircnet
The channel and network to add to the configuration; you can optionally
specify the password of a channel.
You can also use the -botcmd without -bots argument. The command is
then sent whenever you join the channel.
If no parameters are given, the list of channels you have joined will be
displayed.
Description:
If you want to remove some settings from existing channel record,
for example bots, just give the -bots "" parameters to it. Password
can be removed by setting it to - (or actually, "" works too).
Adds, removes or displays the configuration of channels; this method is
used to automate and simplify your workflow.
You can remove the channels with
/CHANNEL REMOVE <channel> <network>
Examples:
/CHANNEL LIST displays list of channels with settings.
/CHANNEL ADD -auto #irssi Freenode
/CHANNEL ADD -auto -bots "*!@*.meow.net *!basement@cat.org" -botcmd "msg $0 op myPassword" #hideout Freenode
/CHANNEL ADD -auto -bots "Q!TheQBot@CServe.quakenet.org" -botcmd "^MSG Q op #irssi" #irssi Quakenet
/CHANNEL without any arguments displays list of channels you have
joined. You can also use /CHANNEL to join to channels just as with
/JOIN, like /CHANNEL #a.
/CHANNEL
/CHANNEL LIST
/CHANNEL REMOVE #hideout Freenode
See also: TS, JOIN
See also: JOIN, TS

View File

@ -1,9 +1,19 @@
Syntax:
@SYNTAX:clear@
This command clears the current window of all text. It is useful
for wiping a screen that has rendered improperly (such as due
to a bad termcap entry) or that contains sensitive information
(such as one's OPER password).
Parameters:
-all: Clear all the windows
The window number to clear; if no argument is given, the active window
is used.
Description:
Clears the window of all text; you may use this to clear a windows that
contains sensitive information or has rendered improperly.
See also: REDRAW

View File

@ -1,31 +1,31 @@
Syntax:
@SYNTAX:completion@
Irssi can "complete" some words for you - you can write just first few letters
of the word and press TAB (or any other key with action word_completion
assigned). Then, irssi will choose the most probable matching word and inserts
it to the command line. You can press TAB repetitively and irssi will replace
the chosen word with another possible words matching to the letters you wrote.
Parameters:
The words chosen usually depend on their context - they can be filenames or
command names, but most frequently they are nicks of people on same channels as
you are. However, you can have global list of own completions, which apply to
all contexts. This command is dedicated to maintaining of such a list.
-auto: Insert the completion without pressing a word completion character.
-delete: Removes the completion from the list.
A key and the value to use as a replacement. If no argument is given, the
list of completions will be displayed.
Without any parameters, /COMPLETION displays list of all user completions.
Description:
/COMPLETION [-auto] <prefix> <string> adds completion which gets triggered when
you press TAB (or any other key with action word_completion assigned) after
writing <prefix> specified and which expands to <string>. When -auto is
specified, the completion gets triggered even when you press SPACE or ENTER (or
any other key with action check_replaces assigned) after the <prefix>. If
there's already some <prefix> completion in the list, it will get replaced.
Replaces or completed words or letters; you can write just the first few
letters of the word and press TAB to insert a replacement.
/COMPLETION -delete <prefix> removes completion of <prefix> from the user
completion list.
When a replacement has been found, Irssi will choose the most probable
matching word and replaces it; you may press TAB repeatedly to swap between
matches.
Note: When -auto is specified for the <prefix> you want to remove you have to
quote it like /COMPLETION -delete '<prefix>'. Works with doublequotes aswell.
Examples:
/COMPLETION w/h without
/COMPLETION -auto compr compromised
/COMPLETION -delete 'compr'
/COMPLETION -delete without
See also: BIND

View File

@ -1,23 +1,38 @@
Syntax:
@SYNTAX:connect@
-4, -6: specify explicitly whether to use IPv4 or IPv6 address
-ssl: use SSL when connecting
-ssl_cert: The SSL client certificate file (implies -ssl)
-ssl_pkey: The SSL client private key (if not included in the certificate file)
-ssl_pass: The password for the SSL client private key or certificate.
-ssl_verify: Verify servers SSL certificate
-ssl_cafile: File with list of CA certificates (implies -ssl_verify)
-ssl_capath: Directory with CA certificates (implies -ssl_verify)
-network: the network this connection belongs to
-ircnet: Same as -network. Deprecated. Do not use.
-host: the host
-!: don't autojoin channels
-noautosendcmd: don't execute autosendcmd
-rawlog: immediately open rawlog after connected
Parameters:
This command makes irssi to connect to specified server.
Current connections are kept and a new one is created.
-4: Connect using IPv4.
-6: Connect using IPv6.
-ssl: Connect using SSL encryption.
-ssl_cert: The SSL client certificate file.
-ssl_pkey: The SSL client private key, if not included in the certificate file.
-ssl_verify: Verify the SSL certificate of the server.
-ssl_cafile: The file with the list of CA certificates.
-ssl_capath: The directory which contains the CA certificates.
-noproxy: Ignore the global proxy configuration.
-network: The network this connection belongs to
-host: The hostname you would like to connect from.
-rawlog: Immediately open rawlog after connecting.
-!: Don't autojoin channels.
-noautosendcmd: Don't execute autosendcmd.
See also: SERVER, DISCONNECT, RMRECONNS, SCONNECT
A network or server to connect to. You can optionally specify a custom port,
password and nickname.
Description:
Opens a new connection to the specified network or server.
Examples:
/CONNECT Freenode
/CONNECT -6 Freenode
/CONNECT -4 -! -host my.cute.hostname.tld -network Freenode orwell.freenode.net
/CONNECT kitties.example.com 6667 myPassword BasementCat
See also: DISCONNECT, RMRECONNS, SERVER

View File

@ -1,7 +1,23 @@
Syntax:
@SYNTAX:ctcp@
Sends a CTCP message. For example CTCP ACTION, or CTCP VERSION.
Parameters:
See also: ME, ACTION
A target nickname or channel and a command.
Description:
Sends a CTCP request towards the given target nickname or channel.
Examples:
/CTCP mike PING
/CTCP #irssi VERSION
/CTCP bob USERINFO
/CTCP sarah CLIENTINFO
/CTCP john TIME
See also: ACTION, ME

View File

@ -1,8 +1,22 @@
Syntax:
@SYNTAX:cycle@
Cycles (leaves and joins) the current channel or the specified
channel.
Parameters:
A channel and the message. If no argument is given, the active channel
will be used.
Description:
Leaves and rejoins a channel.
Examples:
/CYCLE
/CYCLE #irssi
/CYCLE #irssi BRB :)
See also: JOIN, PART