Difference between revisions of "ExpandString"

From BNC4FREE
Jump to navigation Jump to search
m (Identfile doesn't need to be mentioned here)
m (→‎Expand Strings: Add missing examples)
 
Line 9: Line 9:
 
| %user%
 
| %user%
 
| Your bouncer username
 
| Your bouncer username
|
+
| MyUsername
 
|-
 
|-
 
| %nick%
 
| %nick%
 
| the current nick that is being used
 
| the current nick that is being used
|
+
| MyNickname
 
|-
 
|-
 
| %defnick%
 
| %defnick%
 
| the default nick, as specified in the config/web panel
 
| the default nick, as specified in the config/web panel
|
+
| MyNickname
 
|-
 
|-
 
| %altnick%
 
| %altnick%
 
| the alternate nick, as specified in the config/web panel
 
| the alternate nick, as specified in the config/web panel
|  
+
| NimNom
 
|-
 
|-
 
| %realname%
 
| %realname%
 
| the realname, as specified in the config/web panel
 
| the realname, as specified in the config/web panel
|  
+
| Bacon Man
 
|-
 
|-
 
| %ident%
 
| %ident%
 
| the ident, as specified in the config/web panel
 
| the ident, as specified in the config/web panel
|  
+
| hello
 
|-
 
|-
 
| %vhost%
 
| %vhost%
 
| The VHost/Bindhost that has been assigned to your account or network
 
| The VHost/Bindhost that has been assigned to your account or network
|  
+
| 10.0.0.6
 
|-
 
|-
 
| %bindhost%
 
| %bindhost%
 
| The VHost/Bindhost that has been assigned to your account or network
 
| The VHost/Bindhost that has been assigned to your account or network
|  
+
| 10.0.0.6
 
|-
 
|-
 
| %time%
 
| %time%

Latest revision as of 14:35, 11 July 2020

Some features support variable-like strings.

Expand Strings

Variable Value Sample output
%user% Your bouncer username MyUsername
%nick% the current nick that is being used MyNickname
%defnick% the default nick, as specified in the config/web panel MyNickname
%altnick% the alternate nick, as specified in the config/web panel NimNom
%realname% the realname, as specified in the config/web panel Bacon Man
%ident% the ident, as specified in the config/web panel hello
%vhost% The VHost/Bindhost that has been assigned to your account or network 10.0.0.6
%bindhost% The VHost/Bindhost that has been assigned to your account or network 10.0.0.6
%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