summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorshennetsind <notind@gmail.com>2013-06-27 10:30:26 -0700
committershennetsind <notind@gmail.com>2013-06-27 10:30:26 -0700
commitb97cbaf1a988370cb8cadc3d0108c19d14593b94 (patch)
tree4c7e2b722ad8baf8a165e83832988c8f89e6911f /src/map/trade.c
parentdbb4ce9421aed2defb4f3566e8c0b330c08b58bc (diff)
parent56e37cb8d74da7c12814df50a1d28f59a9b8dc36 (diff)
downloadhercules-b97cbaf1a988370cb8cadc3d0108c19d14593b94.tar.gz
hercules-b97cbaf1a988370cb8cadc3d0108c19d14593b94.tar.bz2
hercules-b97cbaf1a988370cb8cadc3d0108c19d14593b94.tar.xz
hercules-b97cbaf1a988370cb8cadc3d0108c19d14593b94.zip
Merge pull request #50 from Earisu/master
Chrif interface
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index a2a29651b..c44f04884 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -206,13 +206,13 @@ int impossible_trade_check(struct map_session_data *sd)
intif_wis_message_to_gm(iMap->wisp_server_name, PC_PERM_RECEIVE_HACK_INFO, message_to_gm);
// if we block people
if (battle_config.ban_hack_trade < 0) {
- chrif_char_ask_name(-1, sd->status.name, 1, 0, 0, 0, 0, 0, 0); // type: 1 - block
+ chrif->char_ask_name(-1, sd->status.name, 1, 0, 0, 0, 0, 0, 0); // type: 1 - block
set_eof(sd->fd); // forced to disconnect because of the hack
// message about the ban
strcpy(message_to_gm, msg_txt(540)); // This player has been definitively blocked.
// if we ban people
} else if (battle_config.ban_hack_trade > 0) {
- chrif_char_ask_name(-1, sd->status.name, 2, 0, 0, 0, 0, battle_config.ban_hack_trade, 0); // type: 2 - ban (year, month, day, hour, minute, second)
+ chrif->char_ask_name(-1, sd->status.name, 2, 0, 0, 0, 0, battle_config.ban_hack_trade, 0); // type: 2 - ban (year, month, day, hour, minute, second)
set_eof(sd->fd); // forced to disconnect because of the hack
// message about the ban
sprintf(message_to_gm, msg_txt(507), battle_config.ban_hack_trade); // This player has been banned for %d minute(s).
@@ -603,8 +603,8 @@ void trade_tradecommit(struct map_session_data *sd)
// save both player to avoid crash: they always have no advantage/disadvantage between the 2 players
if (iMap->save_settings&1)
{
- chrif_save(sd,0);
- chrif_save(tsd,0);
+ chrif->save(sd,0);
+ chrif->save(tsd,0);
}
}
@@ -621,4 +621,4 @@ void trade_defaults(void)
trade->ok = trade_tradeok;
trade->cancel = trade_tradecancel;
trade->commit = trade_tradecommit;
-} \ No newline at end of file
+}