mirror of
https://github.com/SantaSpeen/Rcon-VK-Bot.git
synced 2025-07-02 07:45:54 +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):
|
def fix_rcon_text(_srt):
|
||||||
try:
|
try:
|
||||||
_srt = list(_srt)
|
if '§' in _srt:
|
||||||
for i in range(len(_srt)):
|
_srt = list(_srt)
|
||||||
if _srt[i] == '§':
|
for i in range(len(_srt)):
|
||||||
_srt[i] = ''
|
if _srt[i] == '§':
|
||||||
_srt[i + 1] = ''
|
_srt[i] = ''
|
||||||
_srt = ''.join(_srt)
|
_srt[i + 1] = ''
|
||||||
|
_srt = ''.join(_srt)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log(f"fix_rcon_text ERROR with: {_srt}", 1)
|
log(f"fix_rcon_text ERROR with: {_srt}", 1)
|
||||||
_srt = f'CRITICAL ERROR: {e}'
|
_srt = f'CRITICAL ERROR: {e}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user