mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
fd3676e407
commit
3f79c8553c
@ -1,8 +1,21 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:cat@
|
@SYNTAX:cat@
|
||||||
|
|
||||||
Outputs the contents of the specified file. Equivalent to
|
Parameters:
|
||||||
UNIX 'cat' command.
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -1,8 +1,21 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:cd@
|
@SYNTAX:cd@
|
||||||
|
|
||||||
Changes the current working directory. Equivalent to UNIX
|
Parameters:
|
||||||
'cd' command.
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -1,35 +1,39 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:channel@
|
@SYNTAX:channel@
|
||||||
|
|
||||||
Irssi can automatically join to specified channels in specified
|
Parameters:
|
||||||
IRC networks. It can also automatically send the password when
|
|
||||||
manually joining to channel without specifying the password.
|
|
||||||
|
|
||||||
/CHANNEL ADD [-auto | -noauto] [-bots <masks>] [-botcmd <command>]
|
LIST: Displays the list of configured channels.
|
||||||
<channel> <network> [<password>]
|
ADD: Adds a channel to your configuration.
|
||||||
|
REMOVE: Removes a channel from your configuration.
|
||||||
|
|
||||||
With -bots and -botcmd arguments you can automatically send
|
-auto: Automatically join the channel.
|
||||||
commands to someone in channel. This is useful for automatically
|
-noauto: Don't join the channel automatically.
|
||||||
getting ops for channels, for example
|
-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"
|
The channel and network to add to the configuration; you can optionally
|
||||||
-botcmd "msg $0 op mypass" #channel ircnet
|
specify the password of a channel.
|
||||||
|
|
||||||
You can also use the -botcmd without -bots argument. The command is
|
If no parameters are given, the list of channels you have joined will be
|
||||||
then sent whenever you join the channel.
|
displayed.
|
||||||
|
|
||||||
If you want to remove some settings from existing channel record,
|
Description:
|
||||||
for example bots, just give the -bots "" parameters to it. Password
|
|
||||||
can be removed by setting it to - (or actually, "" works too).
|
|
||||||
|
|
||||||
You can remove the channels with
|
Adds, removes or displays the configuration of channels; this method is
|
||||||
/CHANNEL REMOVE <channel> <network>
|
used to automate and simplify your workflow.
|
||||||
|
|
||||||
/CHANNEL LIST displays list of channels with settings.
|
Examples:
|
||||||
|
|
||||||
/CHANNEL without any arguments displays list of channels you have
|
/CHANNEL ADD -auto #irssi Freenode
|
||||||
joined. You can also use /CHANNEL to join to channels just as with
|
/CHANNEL ADD -auto -bots "*!@*.meow.net *!basement@cat.org" -botcmd "msg $0 op myPassword" #hideout Freenode
|
||||||
/JOIN, like /CHANNEL #a.
|
/CHANNEL ADD -auto -bots "Q!TheQBot@CServe.quakenet.org" -botcmd "^MSG Q op #irssi" #irssi Quakenet
|
||||||
|
|
||||||
See also: TS, JOIN
|
/CHANNEL
|
||||||
|
/CHANNEL LIST
|
||||||
|
/CHANNEL REMOVE #hideout Freenode
|
||||||
|
|
||||||
|
See also: JOIN, TS
|
||||||
|
|
||||||
|
@ -1,9 +1,19 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:clear@
|
@SYNTAX:clear@
|
||||||
|
|
||||||
This command clears the current window of all text. It is useful
|
Parameters:
|
||||||
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).
|
|
||||||
|
|
||||||
|
-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
|
||||||
|
|
||||||
|
@ -1,31 +1,31 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:completion@
|
@SYNTAX:completion@
|
||||||
|
|
||||||
Irssi can "complete" some words for you - you can write just first few letters
|
Parameters:
|
||||||
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.
|
|
||||||
|
|
||||||
The words chosen usually depend on their context - they can be filenames or
|
-auto: Insert the completion without pressing a word completion character.
|
||||||
command names, but most frequently they are nicks of people on same channels as
|
-delete: Removes the completion from the list.
|
||||||
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.
|
|
||||||
|
|
||||||
Without any parameters, /COMPLETION displays list of all user completions.
|
A key and the value to use as a replacement. If no argument is given, the
|
||||||
|
list of completions will be displayed.
|
||||||
|
|
||||||
/COMPLETION [-auto] <prefix> <string> adds completion which gets triggered when
|
Description:
|
||||||
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.
|
|
||||||
|
|
||||||
/COMPLETION -delete <prefix> removes completion of <prefix> from the user
|
Replaces or completed words or letters; you can write just the first few
|
||||||
completion list.
|
letters of the word and press TAB to insert a replacement.
|
||||||
|
|
||||||
Note: When -auto is specified for the <prefix> you want to remove you have to
|
When a replacement has been found, Irssi will choose the most probable
|
||||||
quote it like /COMPLETION -delete '<prefix>'. Works with doublequotes aswell.
|
matching word and replaces it; you may press TAB repeatedly to swap between
|
||||||
|
matches.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
/COMPLETION w/h without
|
||||||
|
/COMPLETION -auto compr compromised
|
||||||
|
/COMPLETION -delete 'compr'
|
||||||
|
/COMPLETION -delete without
|
||||||
|
|
||||||
See also: BIND
|
See also: BIND
|
||||||
|
|
||||||
|
@ -1,23 +1,38 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:connect@
|
@SYNTAX:connect@
|
||||||
|
|
||||||
-4, -6: specify explicitly whether to use IPv4 or IPv6 address
|
Parameters:
|
||||||
-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
|
|
||||||
|
|
||||||
This command makes irssi to connect to specified server.
|
-4: Connect using IPv4.
|
||||||
Current connections are kept and a new one is created.
|
-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
|
||||||
|
|
||||||
|
@ -1,7 +1,23 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:ctcp@
|
@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
|
||||||
|
|
||||||
|
@ -1,8 +1,22 @@
|
|||||||
|
|
||||||
|
Syntax:
|
||||||
|
|
||||||
@SYNTAX:cycle@
|
@SYNTAX:cycle@
|
||||||
|
|
||||||
Cycles (leaves and joins) the current channel or the specified
|
Parameters:
|
||||||
channel.
|
|
||||||
|
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
|
See also: JOIN, PART
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user