Update sweebridge.py

This commit is contained in:
Nova Cat 2025-01-08 14:19:16 -08:00
parent 5d9aa4b25e
commit 6a2ff601c3

View file

@ -79,6 +79,11 @@ def parse_content(text:str, platform:int, target:str):
# Text for use in Guilded,
# Text for use in [UNUSED]
# ]
# platform =
# 1 - IRC
# 2 - Discord
# 3 - Guilded
# platform will be the value of the incoming platform, not any outgoing ones.
e = [text]
if platform == 1 and "discord" in config[target]: # Parse IRC -> Discord
members = {}
@ -106,7 +111,7 @@ def parse_content(text:str, platform:int, target:str):
e.append("".join(temp))
else:
e.append(text)
if platform == 2 and "guilded" in config[target]: # Parse IRC -> Guilded:
if platform != 3 and "guilded" in config[target]: # Parse IRC -> Guilded:
# Links workaround for Guilded
temp = ""
parsed = text.split(" ")