summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index c4dcba902..4f549fb66 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -3523,8 +3523,13 @@ ACMD_FUNC(char_ban)
if (value == 0)
modif_p++;
else {
- if (modif_p[0] == '-' || modif_p[0] == '+')
+ if (modif_p[0] == '-' || modif_p[0] == '+') {
+ if( modif_p[0] == '-' && get_atcommand_level("unban") > pc_isGM(sd) ) {
+ clif_displaymessage(fd,"You are not allowed to reduce the length of a ban");
+ return -1;
+ }
modif_p++;
+ }
while (modif_p[0] >= '0' && modif_p[0] <= '9')
modif_p++;
if (modif_p[0] == 's') {