bool party_booking_delete(struct map_session_data *sd, bool force_delete) { struct party_data *p=party_search(sd->status.party_id); if (!check_party_leader(sd, p) && !force_delete) { return false; } clif_PartyBookingDeleteNotify(sd, sd->status.party_id); idb_remove(party_booking_db,sd->status.party_id); return true; }
bool party_booking_delete(struct map_session_data *sd) { struct party_booking_ad_info *pb_ad; if ((pb_ad = (struct party_booking_ad_info*)idb_get(party_booking_db, sd->status.char_id)) != NULL) { clif_PartyBookingDeleteNotify(sd, pb_ad->index); idb_remove(party_booking_db,sd->status.char_id); } return true; }