- Map server will now resent the whole list of online characters to char-server on reconnect when the kick_on_disconnect setting is active.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7365 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-06-28 01:00:31 +00:00
parent 26febc903b
commit fe7e59e6b8
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/27 2006/05/27
* Map server will now resent the whole list of online characters to
char-server on reconnect when the kick_on_disconnect setting is active.
[Skotlex]
* Cleaned up and optimized the IP sync code. New login_athena config * Cleaned up and optimized the IP sync code. New login_athena config
setting sync_ip_interval specifies how often to sync the ip. The default is setting sync_ip_interval specifies how often to sync the ip. The default is
0 (disabled). [Skotlex] 0 (disabled). [Skotlex]

View File

@ -412,6 +412,10 @@ int chrif_sendmapack(int fd)
ShowStatus("Map sending complete. Map Server is now online.\n"); ShowStatus("Map sending complete. Map Server is now online.\n");
chrif_state = 2; chrif_state = 2;
//If there are players online, send them to the char-server. [Skotlex]
if (!kick_on_disconnect)
send_users_tochar(-1, gettick(), 0, 0);
//Re-save any storages that were modified in the disconnection time. [Skotlex] //Re-save any storages that were modified in the disconnection time. [Skotlex]
do_reconnect_storage(); do_reconnect_storage();