mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Revert "chore(Script/Misc): cleanup" (#19627)
Revert "chore(Script/Misc): cleanup (#19619)"
This reverts commit 7ff8f72397.
This commit is contained in:
@@ -27,33 +27,19 @@ def islog(line):
|
||||
else :
|
||||
return False
|
||||
|
||||
def isSendErrorMessage(line):
|
||||
substring = 'SendErrorMessage'
|
||||
if substring in line:
|
||||
return True
|
||||
else :
|
||||
return False
|
||||
# def isSendSysMessage(line):
|
||||
# substring = 'SendSysMessage'
|
||||
# if substring in line:
|
||||
# return True
|
||||
# else :
|
||||
# return False
|
||||
|
||||
def isSendWorldText(line):
|
||||
substring = 'SendWorldText'
|
||||
if substring in line:
|
||||
return True
|
||||
else :
|
||||
return False
|
||||
|
||||
def isSendSysMessage(line):
|
||||
substring = 'SendSysMessage'
|
||||
if substring in line:
|
||||
return True
|
||||
else :
|
||||
return False
|
||||
|
||||
def isPSendSysMessage(line):
|
||||
substring = 'PSendSysMessage'
|
||||
if substring in line:
|
||||
return True
|
||||
else :
|
||||
return False
|
||||
# def isPSendSysMessage(line):
|
||||
# substring = 'PSendSysMessage'
|
||||
# if substring in line:
|
||||
# return True
|
||||
# else :
|
||||
# return False
|
||||
|
||||
def isPQuery(line):
|
||||
substring = 'PQuery'
|
||||
@@ -106,14 +92,10 @@ def checkSoloLine(line):
|
||||
elif isPAppend(line):
|
||||
line = line.replace("PAppend", "Append");
|
||||
return handleCleanup(line), False
|
||||
elif isSendErrorMessage(line):
|
||||
return handleCleanup(line), False
|
||||
elif isSendWorldText(line):
|
||||
return handleCleanup(line), False
|
||||
elif isSendSysMessage(line):
|
||||
return handleCleanup(line), False
|
||||
elif isPSendSysMessage(line):
|
||||
return handleCleanup(line), False
|
||||
# elif isSendSysMessage(line):
|
||||
# return handleCleanup(line), False
|
||||
# elif isPSendSysMessage(line):
|
||||
# return handleCleanup(line), False
|
||||
# elif isStringFormat(line):
|
||||
# return handleCleanup(line), False
|
||||
else:
|
||||
@@ -127,14 +109,10 @@ def startMultiLine(line):
|
||||
return handleCleanup(line), True
|
||||
elif islog(line):
|
||||
return handleCleanup(line), True
|
||||
elif isSendErrorMessage(line):
|
||||
return handleCleanup(line), True
|
||||
elif isSendWorldText(line):
|
||||
return handleCleanup(line), True
|
||||
elif isSendSysMessage(line):
|
||||
return handleCleanup(line), True
|
||||
elif isPSendSysMessage(line):
|
||||
return handleCleanup(line), True
|
||||
# elif isSendSysMessage(line):
|
||||
# return handleCleanup(line), True
|
||||
# elif isPSendSysMessage(line):
|
||||
# return handleCleanup(line), True
|
||||
elif isPQuery(line):
|
||||
line = line.replace("PQuery", "Query");
|
||||
return handleCleanup(line), True
|
||||
@@ -199,7 +177,6 @@ def handleCleanup(line):
|
||||
line = line.replace("%3.1f", "{:3.1f}");
|
||||
line = line.replace("%%", "%");
|
||||
line = line.replace(".c_str()", "");
|
||||
line = line.replace("->c_str()", "");
|
||||
line = line.replace("\" SZFMTD \"", "{}");
|
||||
line = line.replace("\" UI64FMTD \"", "{}");
|
||||
# line = line.replace("\" STRING_VIEW_FMT \"", "{}");
|
||||
|
||||
Reference in New Issue
Block a user