summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorEPuncker <gm.perflex@gmail.com>2014-09-20 23:59:59 -0300
committerEPuncker <gm.perflex@gmail.com>2014-09-20 23:59:59 -0300
commit82037b89b33c3fa2a5cfaf33038fbf9ebddea17f (patch)
tree6ac06fffc8149ae2415364c824ede304371b731e /src/map/clif.c
parentdb896b4ec75d0bd32a699d2b850e0c0bc66d6506 (diff)
downloadhercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.gz
hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.bz2
hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.xz
hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.zip
Added 4 new permissions
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b8051697e..018087000 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10886,7 +10886,7 @@ void clif_parse_NpcBuyListSend(int fd, struct map_session_data* sd)
unsigned short* item_list = (unsigned short*)RFIFOP(fd,4);
int result;
- if( sd->state.trading || !sd->npc_shopid )
+ if( sd->state.trading || !sd->npc_shopid || pc_has_permission(sd,PC_PERM_DISABLE_STORE) )
result = 1;
else
result = npc->buylist(sd,n,item_list);
@@ -15602,7 +15602,7 @@ void clif_parse_cashshop_buy(int fd, struct map_session_data *sd)
int fail = 0;
nullpo_retv(sd);
- if( sd->state.trading || !sd->npc_shopid )
+ if( sd->state.trading || !sd->npc_shopid || pc_has_permission(sd,PC_PERM_DISABLE_STORE) )
fail = 1;
else {
#if PACKETVER < 20101116