WHY2/src/chat/config/server.toml

27 lines
1.3 KiB
TOML

# This is part of WHY2
# Copyright (C) 2022 Václav Šmejkal
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
user_pick_username = true # User will be prompted for his username on connect or will end up with default_username
server_username = "server" # Username server will use
default_username = "anon" # If user_pick_username is set to false, this will be used as client username
communication_time = 300 # Seconds waiting for client message before stopping communication
max_username_length = 20 # Maximal username length
min_username_length = 4 # Minimal username length
max_username_tries = 3 # Times asking client for username (if client tries to use invalid username)
max_message_length = 100 # Maximal message length