diff --git a/sweebridge.py b/sweebridge.py index d297a9b..8bf3470 100644 --- a/sweebridge.py +++ b/sweebridge.py @@ -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(" ")