summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c35
1 files changed, 26 insertions, 9 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 41b13b3db..91d0870d1 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1,7 +1,23 @@
-// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
-// See the LICENSE file
-// Portions Copyright (c) Athena Dev Teams
-
+/**
+ * This file is part of Hercules.
+ * http://herc.ws - http://github.com/HerculesWS/Hercules
+ *
+ * Copyright (C) 2012-2015 Hercules Dev Team
+ * Copyright (C) Athena Dev Teams
+ *
+ * Hercules 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 <http://www.gnu.org/licenses/>.
+ */
#define HERCULES_CORE
#include "config/core.h" // CONSOLE_INPUT
@@ -5637,21 +5653,21 @@ int char_config_read(const char* cfgName)
} else if(strcmpi(w1, "gm_allow_group") == 0) {
gm_allow_group = atoi(w2);
} else if (strcmpi(w1, "autosave_time") == 0) {
- autosave_interval = atoi(w2)*1000;
+ autosave_interval = atoi(w2) * 1000;
if (autosave_interval <= 0)
autosave_interval = DEFAULT_AUTOSAVE_INTERVAL;
} else if (strcmpi(w1, "save_log") == 0) {
save_log = config_switch(w2);
}
#ifdef RENEWAL
- else if (strcmpi(w1, "start_point") == 0) {
+ else if (strcmpi(w1, "start_point_re") == 0) {
char map[MAP_NAME_LENGTH_EXT];
int x, y;
if (sscanf(w2, "%15[^,],%d,%d", map, &x, &y) < 3)
continue;
start_point.map = mapindex->name2id(map);
if (!start_point.map)
- ShowError("Specified start_point %s not found in map-index cache.\n", map);
+ ShowError("Specified start_point_re '%s' not found in map-index cache.\n", map);
start_point.x = x;
start_point.y = y;
}
@@ -5663,7 +5679,7 @@ int char_config_read(const char* cfgName)
continue;
start_point.map = mapindex->name2id(map);
if (!start_point.map)
- ShowError("Specified start_point_pre %s not found in map-index cache.\n", map);
+ ShowError("Specified start_point_pre '%s' not found in map-index cache.\n", map);
start_point.x = x;
start_point.y = y;
}
@@ -5674,7 +5690,7 @@ int char_config_read(const char* cfgName)
i = 0;
split = strtok(w2, ",");
- while (split != NULL && i < MAX_START_ITEMS*3) {
+ while (split != NULL && i < MAX_START_ITEMS * 3) {
char *split2 = split;
split = strtok(NULL, ",");
start_items[i] = atoi(split2);
@@ -5977,6 +5993,7 @@ int do_init(int argc, char **argv) {
Sql_HerculesUpdateCheck(inter->sql_handle);
#ifdef CONSOLE_INPUT
console->input->setSQL(inter->sql_handle);
+ console->display_gplnotice();
#endif
ShowStatus("The char-server is "CL_GREEN"ready"CL_RESET" (Server is listening on the port %d).\n\n", chr->port);