diff --git a/sweebridge.py b/sweebridge.py index fab29d4..d297a9b 100644 --- a/sweebridge.py +++ b/sweebridge.py @@ -106,7 +106,17 @@ def parse_content(text:str, platform:int, target:str): e.append("".join(temp)) else: e.append(text) - e.append(text) + if platform == 2 and "guilded" in config[target]: # Parse IRC -> Guilded: + # Links workaround for Guilded + temp = "" + parsed = text.split(" ") + for index, i in parsed.enumerate(): + if "http://" in i or "https://" in i: + parsed[index] = f"[{i}]({i})" + temp = " ".join(parsed) + e.append(temp) + else: + e.append(text) e.append(text) return e def ircsession(platform:str, sock:bot_irc):