mirror of
https://github.com/SantaSpeen/Rcon-VK-Bot.git
synced 2025-07-01 23:35:55 +00:00
some fixes for mcpe
This commit is contained in:
parent
82869515f3
commit
a79980903e
13
src/main.py
13
src/main.py
@ -73,12 +73,13 @@ perms = Permissions(config['permission_file'])
|
||||
|
||||
def fix_rcon_text(_srt):
|
||||
try:
|
||||
_srt = list(_srt)
|
||||
for i in range(len(_srt)):
|
||||
if _srt[i] == '§':
|
||||
_srt[i] = ''
|
||||
_srt[i + 1] = ''
|
||||
_srt = ''.join(_srt)
|
||||
if '§' in _srt:
|
||||
_srt = list(_srt)
|
||||
for i in range(len(_srt)):
|
||||
if _srt[i] == '§':
|
||||
_srt[i] = ''
|
||||
_srt[i + 1] = ''
|
||||
_srt = ''.join(_srt)
|
||||
except Exception as e:
|
||||
log(f"fix_rcon_text ERROR with: {_srt}", 1)
|
||||
_srt = f'CRITICAL ERROR: {e}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user