From a3cda4e072586458e1ace4d215f3fd2406518d96 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2019 22:36:26 +0300 Subject: Dont allow invite players, who refused party invites --- src/map/party.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/map/party.c b/src/map/party.c index e4fb18c23..dc330d92d 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -424,6 +424,12 @@ static int party_invite(struct map_session_data *sd, struct map_session_data *ts return 0; } + if ((tsd->status.allow_party & 1) != 0) { + // party invite blocked by player + clif->party_inviteack(sd, tsd->status.name, 5); + return 0; + } + tsd->party_invite=sd->status.party_id; tsd->party_invite_account=sd->status.account_id; -- cgit v1.2.3-60-g2f50