summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-07-03 15:11:06 -0300
committerJesusaves <cpntb1@ymail.com>2023-07-03 15:11:06 -0300
commit8850795a9ba2fea96471cd3a0e92f957376a3a53 (patch)
treed0cbcd84160023de701f5afed5719afa2c760937
parente7e73cffa7edc3686c1c2718488001ef10a7ebb4 (diff)
downloadtools-8850795a9ba2fea96471cd3a0e92f957376a3a53.tar.gz
tools-8850795a9ba2fea96471cd3a0e92f957376a3a53.tar.bz2
tools-8850795a9ba2fea96471cd3a0e92f957376a3a53.tar.xz
tools-8850795a9ba2fea96471cd3a0e92f957376a3a53.zip
Do not allow statusup2() in item database (disable fruits)
-rwxr-xr-xmerge-server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/merge-server.py b/merge-server.py
index d9a7f4b..3b4eecb 100755
--- a/merge-server.py
+++ b/merge-server.py
@@ -15,6 +15,9 @@ os.chdir("..")
item_db=[]
def parse(l, offset, prefix):
+ # Disabled commands
+ l=l.replace('statusup2', '//statusup2')
+ # Parsing block
if "\tId:" in l:
tmp=l.split("Id:")
try:
@@ -58,6 +61,8 @@ def parse(l, offset, prefix):
with open("%s/db/re/item_db.conf" % MOUBOO, "r") as f:
for l in f:
#l=l.replace(" ", "\t")
+ ## Disabled commands
+ l=l.replace('statusup2', '//statusup2')
## Add headers
if "== License ==" in l:
item_db.append("//=========================================================================\n")