diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
commit | f2757bbfd049777f6fa9089bd33e38f80290c039 (patch) | |
tree | 50d3e138efb0c263cc9cae935a179645d19ce54d /src/map/tmw.cpp | |
parent | 42631b502b3446d71cfe2745045436d9497ee0ed (diff) | |
download | tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.gz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.bz2 tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.xz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.zip |
Split out the keys from character data to have better paging performance
Diffstat (limited to 'src/map/tmw.cpp')
-rw-r--r-- | src/map/tmw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/tmw.cpp b/src/map/tmw.cpp index 72cfa2b..16276fa 100644 --- a/src/map/tmw.cpp +++ b/src/map/tmw.cpp @@ -96,12 +96,12 @@ void tmw_AutoBan(dumb_ptr<map_session_data> sd, ZString reason, int length) sd->auto_ban_info.in_progress = 1; AString hack_msg = STRPRINTF("[GM] %s has been autobanned for %s spam", - sd->status.name, + sd->status_key.name, reason); tmw_GmHackMsg(hack_msg); AString fake_command = STRPRINTF("@autoban %s %dh (%s spam)", - sd->status.name, length, reason); + sd->status_key.name, length, reason); log_atcommand(sd, fake_command); AString anotherbuf = STRPRINTF("You have been banned for %s spamming. Please do not spam.", @@ -111,7 +111,7 @@ void tmw_AutoBan(dumb_ptr<map_session_data> sd, ZString reason, int length) /* type: 2 - ban(year, month, day, hour, minute, second) */ HumanTimeDiff ban_len {}; ban_len.hour = length; - chrif_char_ask_name(-1, sd->status.name, 2, ban_len); + chrif_char_ask_name(-1, sd->status_key.name, 2, ban_len); clif_setwaitclose(sd->sess); } |