summaryrefslogtreecommitdiff
path: root/src/map/rodex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/rodex.c')
-rw-r--r--src/map/rodex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/rodex.c b/src/map/rodex.c
index 996576fd3..cc95a1c95 100644
--- a/src/map/rodex.c
+++ b/src/map/rodex.c
@@ -26,6 +26,7 @@
#include "map/intif.h"
#include "map/itemdb.h"
#include "map/pc.h"
+#include "map/map.h"
#include "common/nullpo.h"
#include "common/sql.h"
@@ -236,6 +237,11 @@ static int rodex_send_mail(struct map_session_data *sd, const char *receiver_nam
return RODEX_SEND_MAIL_FATAL_ERROR;
}
+ if (!pc_has_permission(sd, PC_PERM_BYPASS_NOSTORAGE) && (map->list[sd->bl.m].flag.nostorage & 2)) {
+ rodex->clean(sd, 1);
+ return RODEX_SEND_MAIL_FATAL_ERROR;
+ }
+
if (zeny < 0) {
rodex->clean(sd, 1);
return RODEX_SEND_MAIL_FATAL_ERROR;