Poster of Linux kernelThe best gift for a Linux geek
bntext

bntext

Section: File Formats (5) Updated: 2 August, 2001
Local index Up
 

NAME

bnmotd.txt, bnnews.txt bnissue.txt - messages for the Unix Battle.net daemon  

DESCRIPTION

The file bnmotd.txt contains text displayed by bnetd(1), when users first log into the server.

The file bnnews.txt contains text displayed when the user uses the /news chat command.

The files consist of raw text with printf-style formatting escapes. Each line of a file can contain a type formatter from the following list:

%B
Use the broadcast attribute (???).
%C
Execute the line as if the user entered it as a command.
%E
Use the error attribute (red).
%I
Use the info attribute (yellow). This is the same was %W.
%M
Normal chat message (white). This will appear as if the user said it.
%T
Emote chat message (???). This will appear as if the user said it.
%W
Use the warning attribute (yellow). This is the same was %I.

Within a line, any of the following format formatters may be used:

%%
Expand to a literal percent sign (%).
%a
Expand to the number of accounts on the server.
%c
Expand to the number of channels on the server. This includes all permanent and current temporary channels.
%g
Expand to the number of games on the server. This includes both public and private (passworded) games.
%h
Expand to the hostname of the server (as returned by gethostname(2)).
%i
Expand to this user's account ID number, formatted with a leading pound (#) sign and leading zeros.
%l
Expand to this user's current chat name which is usually the same
%r
Expand to the IP of the remote machine (the client).
%t
Expand to four character client tag.
%u
Expand to the number of users logged into the server.
%v
Expand to the version number of the server.
 

SEE ALSO

bnetd(1)
 

AUTHOR

Ross Combs (ross@bnetd.org)


 

Index

NAME
DESCRIPTION
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 21:59:56 GMT, April 16, 2011