Morevil
Previous  Parent  Next   Contents
3.2. Configuration file
The chat applet is configured by placing directives in the plain text file config.txt. This file must reside in the same directory as the chat applet archive chat.jar.

The configuration file contain one directive per line. Directives are case sensitive. Lines which begin with the hash character "#" are considered comments, and are ignored.

Contents of the file config.txt:

bad_words "word1;word2"
permitted_hosts "domain_1;domain_2"
kickpage "kick.html"


# You can translate the following phrases in any language.

# Login panel
1 "Nickname:"
2 "Login"

# Chat panel
6 "Users"
7 "Rooms"
8 "in"
9 "Logout"
10 "Send"
11 "Settings"

# Prompt
50 "Ignore"
51 "Private"
52 "Profile"
53 "Enter"

# Settings dialog
15 "Save"
16 "Close"

# Font pane
19 "Font"
20 "Message area font"
21 "Example"

#Sound pane
23 "Sound"
24 "Beep at"
25 "The user has entered a room"
26 "The user has left a room"
27 "Private messages"

#Other pane
30 "Other"
31 "Auto popup private messages"
32 "Show smiles"

#messages
35 "left the chat"
36 "entered the chat"
37 "left the room"
38 "entered the room"
39 "Nickname is used"
40 "White..."
41 "You logged off"
42 "You were kicked by the admin"

#private
57 "private chat with"
58 "(private) : "
59 "Send"

bad_words List of bad words. The words must be separated by a semicolon.
These words will be displayed as "#$%&" in the chatting area.
permitted_hosts List of permitted domain names. Domain names must be separated by a semicolon.
The chat applet will work if HTML page with the chat is loaded from the web server whose domain is listed here.
If this list is empty the chat will work if HTML page is loaded from any web server.
kickpage This is the link from the chat page to the "kick" page. This page will be displayed in the browser of the user who was kicked by the administrator.

Previous  Parent  Next   Contents