summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-13 18:27:08 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-13 18:27:08 -0300
commitc91462134c1665bae5349f1fb49d319097167b48 (patch)
treecc02d6737058e49abb8a237b5bf6146336410986
parent8eaa0866e1b37f41e85e66991a5e59d22a124e21 (diff)
downloadserverdata-c91462134c1665bae5349f1fb49d319097167b48.tar.gz
serverdata-c91462134c1665bae5349f1fb49d319097167b48.tar.bz2
serverdata-c91462134c1665bae5349f1fb49d319097167b48.tar.xz
serverdata-c91462134c1665bae5349f1fb49d319097167b48.zip
Prevent @ipban from banning staff
-rw-r--r--npc/commands/ipcheck.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt
index 2568644c4..0a2a24657 100644
--- a/npc/commands/ipcheck.txt
+++ b/npc/commands/ipcheck.txt
@@ -23,6 +23,9 @@ OnBan:
if (.@atcmd_numparameters == 0) {
dispbottom col(l("Syntax: #commandname <reason>"), 1);
}
+ // Do not allow banning staff
+ if (is_staff())
+ end;
.@target$=strcharinfo(0);
.@reason$ = implode(.@atcmd_parameters$, " ");
dispbottom col(l("You were permanently banned by the GM Team."), 1);