ExpandString

From BNC4FREE
Revision as of 12:36, 15 June 2020 by Russell (talk | contribs) (Add information about expandable strings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some features support variable-like strings.

Expand Strings

Variable Value Sample output
%user% Your bouncer username
%nick% the current nick that is being used
%defnick% the default nick, as specified in the config/web panel
%altnick% the alternate nick, as specified in the config/web panel
%realname% the realname, as specified in the config/web panel
%ident% the ident, as specified in the config/web panel
%vhost% The VHost/Bindhost that has been assigned to your account or network
%bindhost% The VHost/Bindhost that has been assigned to your account or network
%time% The current time (can be used for CTCP TIME replies) Mon Jun 15 13:36:08 2020
%uptime% The bouncers uptime 1w 2d 4h 20m 27s
%version% The bouncers version string fBNC - https://bnc4free.com
%bnc% The bouncers name and website, optionally with version,
depending on whether the "Hide version" setting is enabled globally
fBNC - https://bnc4free.com/
%empty% 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% The name of IRC network as specified in the config/web panel Freenode

Features that support expand strings

Expand strings can be used in various places and on some modules. The following is a list of of the modules that accept expand strings.

Modules

Expand strings can also be used for:

  • CTCP Replies
  • Quit Messages
  • Realnames