Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge case when Oauth starts with an 'h' #55

Open
ameigen opened this issue May 31, 2024 · 0 comments · May be fixed by #56
Open

Edge case when Oauth starts with an 'h' #55

ameigen opened this issue May 31, 2024 · 0 comments · May be fixed by #56

Comments

@ameigen
Copy link

ameigen commented May 31, 2024

In the instance that your oauth key begins with the character 'h' it will be stripped from the password at IRC initialization and throw a login error.

class IRC(threading.Thread):

    def __init__(self, nickname: str, password: str, address: str = 'irc.chat.twitch.tv', port: int = 6667):
        super().__init__()

        self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.address: str = address
        self.port: int = port
        self.channels: List[str] = []
        self.nickname: str = nickname
        self.password: str = 'oauth:' + password.lstrip('oauth:')
        self.active: bool = True
        self.incoming: Subject = Subject()
@ameigen ameigen changed the title Edge Case when Oauth starts with an 'h' Edge case when Oauth starts with an 'h' May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant