1 /* 2 Copyright (C) 2009 - 2018 by Thomas Baumhauer <thomas.baumhauer@NOSPAMgmail.com> 3 Part of the Battle for Wesnoth Project https://www.wesnoth.org/ 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY. 11 12 See the COPYING file for more details. 13 */ 14 15 /** 16 * @file 17 * Define the errors the server may send during the login procedure 18 */ 19 20 #pragma once 21 22 #define MP_MUST_LOGIN "100" 23 #define MP_NAME_TAKEN_ERROR "101" 24 #define MP_INVALID_CHARS_IN_NAME_ERROR "102" 25 #define MP_NAME_TOO_LONG_ERROR "103" 26 #define MP_NAME_RESERVED_ERROR "104" 27 #define MP_NAME_UNREGISTERED_ERROR "105" 28 #define MP_NAME_INACTIVE_WARNING "106" 29 #define MP_NAME_AUTH_BAN_USER_ERROR "107" 30 #define MP_NAME_AUTH_BAN_IP_ERROR "108" 31 #define MP_NAME_AUTH_BAN_EMAIL_ERROR "109" 32 33 #define MP_PASSWORD_REQUEST "200" 34 #define MP_PASSWORD_REQUEST_FOR_LOGGED_IN_NAME "201" 35 #define MP_NO_SEED_ERROR "202" 36 #define MP_INCORRECT_PASSWORD_ERROR "203" 37 #define MP_TOO_MANY_ATTEMPTS_ERROR "204" 38