To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "ExpandString"

From ZNC
Jump to navigation Jump to search
(Created page with "Some features (e.g. the perform and awaynick modules and the <code>CTCPReply</code> and (starting with version 0.090) <code>MOTD</code> [[Configuration|config options]...")
 
>Mogigoma
(Added missing format strings, although two of the three may have been intentionally omitted.)
Line 1: Line 1:
 
Some features (e.g. the [[perform]] and [[awaynick]] modules and the <code>CTCPReply</code> and (starting with version 0.090) <code>MOTD</code> [[Configuration|config options]]) support some variable-like strings. Here is a list of these:
 
Some features (e.g. the [[perform]] and [[awaynick]] modules and the <code>CTCPReply</code> and (starting with version 0.090) <code>MOTD</code> [[Configuration|config options]]) support some variable-like strings. Here is a list of these:
 +
 
{|
 
{|
 
! Variable
 
! Variable
Line 13: Line 14:
 
| the current nick
 
| the current nick
 
|-
 
|-
| %altnick%  
+
| %altnick%
 
| the alternate nick as specified in the config
 
| the alternate nick as specified in the config
 
|-
 
|-
Line 24: Line 25:
 
| %vhost%
 
| %vhost%
 
| the current vhost
 
| the current vhost
 +
|-
 +
| %bindhost%
 +
| the current bindhost
 
|-
 
|-
 
| %version%
 
| %version%
Line 33: Line 37:
 
| %uptime%
 
| %uptime%
 
| [[ZNC|ZNC's]] uptime
 
| [[ZNC|ZNC's]] uptime
 +
|-
 +
| %znc%
 +
| replaced with ''All your IRC are belong to ZNC''
 +
|-
 +
| %random%
 +
| replaced with ''42''
 
|}
 
|}

Revision as of 20:02, 24 August 2013

Some features (e.g. the perform and awaynick modules and the CTCPReply and (starting with version 0.090) MOTD config options) support some variable-like strings. Here is a list of these:

Variable Value
%user% your user name
%defnick% your default nick
%nick% the current nick
%altnick% the alternate nick as specified in the config
%ident% the ident
%realname% the realname
%vhost% the current vhost
%bindhost% the current bindhost
%version% ZNC's version string
%time% the current time (can be used for CTCP TIME replies)
%uptime% ZNC's uptime
%znc% replaced with All your IRC are belong to ZNC
%random% replaced with 42