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
(update to match 170)
 
Line 49: Line 49:
 
| %version%
 
| %version%
 
| ZNC's version string
 
| ZNC's version string
| 1.6.1+deb1
+
| 1.7.0+deb1
 
|-
 
|-
 
| %znc%
 
| %znc%
 
| (since [[ChangeLog/1.6.3|1.6.3]]) ZNC's name and website, optionally with version, <br/>depending on "Hide version" setting
 
| (since [[ChangeLog/1.6.3|1.6.3]]) ZNC's name and website, optionally with version, <br/>depending on "Hide version" setting
| ZNC - http://znc.in
+
| ZNC - https://znc.in
 
|-
 
|-
 
| %empty%
 
| %empty%

Latest revision as of 22:35, 24 May 2018

Some features support variable-like strings.

Expand Strings[edit]

Variable Value Sample output
%user% the ZNC user name
%nick% the current nick
%defnick% the default nick, as specified in the config
%altnick% the alternate nick, as specified in the config
%realname% the realname, as specified in the config
%ident% the ident
%vhost% the current bindhost
%bindhost% the current bindhost
%time% the current time (can be used for CTCP TIME replies) Sat Oct 21 22:13:08 2006
%uptime% the current uptime 1w 2d 4h 20m 27s
%version% ZNC's version string 1.7.0+deb1
%znc% (since 1.6.3) ZNC's name and website, optionally with version,
depending on "Hide version" setting
ZNC - https://znc.in
%empty% (since 1.7.0) empty string, can be used e.g. as a poor man's way to insert %nick% literally, without expanding it to the current nick: %ni%empty%ck%.
%network% (since 1.7.0) the name of IRC network as configured in ZNC freenode

Features that support expand strings[edit]

Expand strings can be used with many ZNC features. The following is a list of some features that accept expand strings.

Modules
Config Options
  • CTCPReply
  • MOTD
  • QUITMSG