1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Add documentation for escaping some characters

this is especially important when using `sendcmd` to send a password for autologin
This commit is contained in:
Guntbert Reiter 2021-05-30 21:11:10 +02:00 committed by Ailin Nemui
parent 53b2e0775a
commit aecf087014
2 changed files with 8 additions and 1 deletions

View File

@ -11,11 +11,17 @@
Evaluates the given commands and executes them; you can use internal Evaluates the given commands and executes them; you can use internal
variables and separate multiple commands by using the ';' character. variables and separate multiple commands by using the ';' character.
If the command contains a string with '$', '\' or ';' those characters
need to be escaped:
'$' -> '$$'
'\' -> '\\' (or even '\\\\', depending on where they are used)
';' -> '\;'
%9Examples:%9 %9Examples:%9
/EVAL echo I am connected to ${S} on ${chatnet} as ${N} /EVAL echo I am connected to ${S} on ${chatnet} as ${N}
/EVAL echo My user privileges are +${usermode}; echo Let's party! /EVAL echo My user privileges are +${usermode}; echo Let's party!
to print '1;2$3\4': /EVAL echo 1\;2$$3\\4
%9References:%9 %9References:%9

View File

@ -18,7 +18,8 @@
-usermode: Specifies the user modes to set on yourself. -usermode: Specifies the user modes to set on yourself.
-autosendcmd: Specifies the commands, separated by the ';' character, -autosendcmd: Specifies the commands, separated by the ';' character,
and enclosed within two "'" characters, to perform after and enclosed within two "'" characters, to perform after
connecting. connecting.
(Some characters need to be escaped - see /help eval)
-querychans: Specifies the maximum number of channels to put in one MODE -querychans: Specifies the maximum number of channels to put in one MODE
or WHO command when synchronizing. or WHO command when synchronizing.
-whois: Specifies the maximum number of nicknames in one WHOIS -whois: Specifies the maximum number of nicknames in one WHOIS