summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-16 22:36:26 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:22:05 +0300
commita3cda4e072586458e1ace4d215f3fd2406518d96 (patch)
tree95a961d9ba4504c672a926f34e786f85b149f0af
parentd4408049c3764f3fccef3fb25b3032bebcad2f59 (diff)
downloadhercules-a3cda4e072586458e1ace4d215f3fd2406518d96.tar.gz
hercules-a3cda4e072586458e1ace4d215f3fd2406518d96.tar.bz2
hercules-a3cda4e072586458e1ace4d215f3fd2406518d96.tar.xz
hercules-a3cda4e072586458e1ace4d215f3fd2406518d96.zip
Dont allow invite players, who refused party invites
-rw-r--r--src/map/party.c6
1 files changed, 6 insertions, 0 deletions
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;