From c10ec355a8eeb77ce30685bba38b57ba2852f79d Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 9 Feb 2012 04:22:11 +0000 Subject: @ban is no longer able to reduce the length of a ban unless you can also @unban, special thanks to brian for the suggestion! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15557 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') 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') { -- cgit v1.2.3-70-g09d2