diff options
author | Haru <haru@dotalux.com> | 2018-02-06 20:18:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 20:18:07 +0100 |
commit | 19c94017a31d86f7848085162ffb741770975128 (patch) | |
tree | 33a5cf4b2a580a07f1b3868153123fe4dce49f2f /src/map/pc.c | |
parent | a928f009f5a7bad77eda090ec7af551c2f647d5b (diff) | |
parent | 587dd19c0269b3c8089838a5442260a185b19ead (diff) | |
download | hercules-19c94017a31d86f7848085162ffb741770975128.tar.gz hercules-19c94017a31d86f7848085162ffb741770975128.tar.bz2 hercules-19c94017a31d86f7848085162ffb741770975128.tar.xz hercules-19c94017a31d86f7848085162ffb741770975128.zip |
Merge pull request #1718 from Murilo-BiO/clan_system
Implementation of Official Clan System
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 449cb25d3..c18fdee9e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -29,6 +29,7 @@ #include "map/channel.h" #include "map/chat.h" #include "map/chrif.h" +#include "map/clan.h" #include "map/clif.h" #include "map/date.h" // is_day_of_*() #include "map/duel.h" @@ -1523,6 +1524,12 @@ int pc_reg_received(struct map_session_data *sd) status_calc_pc(sd,SCO_FIRST|SCO_FORCE); chrif->scdata_request(sd->status.account_id, sd->status.char_id); + + if (sd->status.clan_id) + clan->member_online(sd, true); + + //Auth is fully okay, update last_login + sd->status.last_login = time(NULL); // Storage Request intif->request_account_storage(sd); |