Update sweebridge.py
This commit is contained in:
parent
5d9aa4b25e
commit
6a2ff601c3
1 changed files with 6 additions and 1 deletions
|
@ -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(" ")
|
||||
|
|
Loading…
Reference in a new issue