diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-09 04:22:11 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-09 04:22:11 +0000 |
commit | c10ec355a8eeb77ce30685bba38b57ba2852f79d (patch) | |
tree | dd46efeffc569af1ef3fa2a4ce71560df0122359 /src | |
parent | 33af82efa149ada28596fa6b815cc66605577b98 (diff) | |
download | hercules-c10ec355a8eeb77ce30685bba38b57ba2852f79d.tar.gz hercules-c10ec355a8eeb77ce30685bba38b57ba2852f79d.tar.bz2 hercules-c10ec355a8eeb77ce30685bba38b57ba2852f79d.tar.xz hercules-c10ec355a8eeb77ce30685bba38b57ba2852f79d.zip |
@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
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 7 |
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') { |