summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-30 13:31:04 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-30 13:31:04 +0000
commita3d6c7f96996ba1eaa689dd14d7369a4116b1c42 (patch)
treed61052bfc5e719c94a12194d6b92903b22fd5c79 /src/char_sql/char.c
parent0f19650502bb6fd268841d0faba9a4c581aab0ee (diff)
downloadhercules-a3d6c7f96996ba1eaa689dd14d7369a4116b1c42.tar.gz
hercules-a3d6c7f96996ba1eaa689dd14d7369a4116b1c42.tar.bz2
hercules-a3d6c7f96996ba1eaa689dd14d7369a4116b1c42.tar.xz
hercules-a3d6c7f96996ba1eaa689dd14d7369a4116b1c42.zip
Force all players offline in sql when char-server starts
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7977 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 098736caf..1a0945695 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -1249,6 +1249,10 @@ int mmo_char_sql_init(void) {
//it will dc all off players
//and send the loginserver the new state....
+ // Force all users offline in sql when starting char-server
+ // (useful when servers crashs and don't clean the database)
+ set_all_offline_sql();
+
ShowInfo("Finished initilizing.......\n");
return 0;