eval

Syntax

EVAL <command(s)>

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

See also

CAT, CD, ECHO, EXEC