diff options
-rw-r--r-- | src/map/pc.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index debc3361f..f01451c99 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -683,6 +683,7 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim { int i; unsigned long tick = gettick(); + uint32 ip = session[sd->fd]->client_addr; sd->login_id2 = login_id2; sd->gmlevel = gmlevel; @@ -770,22 +771,20 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim //Prevent S. Novices from getting the no-death bonus just yet. [Skotlex] sd->die_counter=-1; - { //Add IP field - uint32 ip = session[sd->fd]->client_addr; - if (pc_isGM(sd)) - ShowInfo("GM '"CL_WHITE"%s"CL_RESET"' logged in." - " (AID/CID: '"CL_WHITE"%d/%d"CL_RESET"'," - " Packet Ver: '"CL_WHITE"%d"CL_RESET"', IP: '"CL_WHITE"%d.%d.%d.%d"CL_RESET"'," - " GM Level '"CL_WHITE"%d"CL_RESET"').\n", - sd->status.name, sd->status.account_id, sd->status.char_id, - sd->packet_ver, CONVIP(ip), pc_isGM(sd)); - else - ShowInfo("'"CL_WHITE"%s"CL_RESET"' logged in." - " (AID/CID: '"CL_WHITE"%d/%d"CL_RESET"'," - " Packet Ver: '"CL_WHITE"%d"CL_RESET"', IP: '"CL_WHITE"%d.%d.%d.%d"CL_RESET"').\n", - sd->status.name, sd->status.account_id, sd->status.char_id, - sd->packet_ver, CONVIP(ip)); - } + //display login notice + if( sd->gmlevel >= battle_config.lowest_gm_level ) + ShowInfo("GM '"CL_WHITE"%s"CL_RESET"' logged in." + " (AID/CID: '"CL_WHITE"%d/%d"CL_RESET"'," + " Packet Ver: '"CL_WHITE"%d"CL_RESET"', IP: '"CL_WHITE"%d.%d.%d.%d"CL_RESET"'," + " GM Level '"CL_WHITE"%d"CL_RESET"').\n", + sd->status.name, sd->status.account_id, sd->status.char_id, + sd->packet_ver, CONVIP(ip), sd->gmlevel); + else + ShowInfo("'"CL_WHITE"%s"CL_RESET"' logged in." + " (AID/CID: '"CL_WHITE"%d/%d"CL_RESET"'," + " Packet Ver: '"CL_WHITE"%d"CL_RESET"', IP: '"CL_WHITE"%d.%d.%d.%d"CL_RESET"').\n", + sd->status.name, sd->status.account_id, sd->status.char_id, + sd->packet_ver, CONVIP(ip)); // Send friends list clif_friendslist_send(sd); |