2021-10-22 22:16:28 +02:00

50 lines
1.3 KiB
Plaintext

# eval
<!-- comment
Please submit changes to
- https://github.com/ailin-nemui/irssi/blob/master/docs/help/in/eval.in
- https://github.com/ailin-nemui/irssi/blob/master/src/core/commands.c
endcomment -->
## Syntax ##
<div class="irssisyntax highlight"><pre style="\-\-cmdlen:4ch"><code><span class="synB">EVAL</span> <span class="synB05">&lt;command(s)></span></code></pre></div>
## Parameters ##
The commands to evaluate.
## Description ##
Evaluates the given commands and executes them; you can use internal
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)
';' -> '\;'
## Examples ##
/EVAL echo I am connected to ${S} on ${chatnet} as ${N}
/EVAL echo My user privileges are +${usermode}; echo Let's party!
to print '1;2$3\4': /EVAL echo 1\;2$$3\\4
## References ##
[https://github.com/irssi/irssi/blob/master/docs/special_vars.txt](https://github.com/irssi/irssi/blob/master/docs/special_vars.txt)
## See also ##
[CAT](/documentation/help/cat), [CD](/documentation/help/cd), [ECHO](/documentation/help/echo), [EXEC](/documentation/help/exec)