Added long $variables + some updates

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1151 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-28 03:48:18 +00:00 committed by cras
parent f382abee30
commit 2e2f9194fa

View File

@ -14,11 +14,11 @@ numerous variable modifiers available.
$[num]variable Expands to the variables value, with 'num' width. If $[num]variable Expands to the variables value, with 'num' width. If
| the number is negative, the value is right-aligned. | the number is negative, the value is right-aligned.
| The value is padded to meet the width with the | The value is padded to meet the width with the
| character given after number (default is space). | character given after number (default is space).
| The value is truncated to specified width unless | The value is truncated to specified width unless
| '!' character precedes the number. If '.' character | '!' character precedes the number. If '.' character
| precedes the number the value isn't padded, just | precedes the number the value isn't padded, just
| truncated. | truncated.
$#variable Expands to the number of words in $variable. If $variable $#variable Expands to the number of words in $variable. If $variable
| is omitted, it assumes $* | is omitted, it assumes $*
$@variable Expands to the number of characters in $variable. if $@variable Expands to the number of characters in $variable. if
@ -70,15 +70,24 @@ $A .. $Z is important.
$Q nickname of whomever you are QUERYing $Q nickname of whomever you are QUERYing
$R version of current server $R version of current server
$S current server name $S current server name
$T target of current input (channel or QUERY nickname) $T target of current input (channel or nick of query)
! $U value of cutbuffer (*DOES NOT WORK* - there is no cut buffer..) $U value of cutbuffer
$V client release date (numeric version string) $V client release date (format YYYYMMDD)
$W current working directory $W current working directory
$X your /userhost $N address (user@host) $X your /userhost $N address (user@host)
$Y value of REALNAME $Y value of REALNAME
$Z time of day (hh:mm) $Z time of day (hh:mm)
$$ a literal '$' $$ a literal '$'
$sysname system name (eg. Linux)
$sysrelease system release (eg. 2.2.18)
$topic channel topic
$usermode user mode
$tag server tag
$chatnet chat network of server
$winref window reference number
$winname window name
For example, assume you have the following alias: For example, assume you have the following alias:
alias blah msg $D Hi there! alias blah msg $D Hi there!