Update __init__.py

This commit is contained in:
Swee 2024-10-20 12:17:02 -07:00
parent 52e61e664b
commit a0344ef497

View file

@ -36,7 +36,7 @@ class IRCSession: # Actual IRC session
socket = socket.socket() # Socket socket = socket.socket() # Socket
wsocket = None # Wrapped socket (if SSL is enabled) wsocket = None # Wrapped socket (if SSL is enabled)
context = ssl_module.create_default_context() # Context of the SSL module, not to be changed by the client. context = ssl_module.create_default_context() # Context of the SSL module, not to be changed by the client.
def __init__(self, address:str="irc.libera.chat", port:int=6697, nick:str="sweetAsSugar", user:str="ScParse", ssl:bool=True, ssl_igninvalid:bool=False, realname:str="SugarcaneParseIRC user", **kwargs): # Contains the configuration def __init__(self, address:str="irc.libera.chat", port:int=6697, nick:str="CaneSugar", user:str="ScParse", ssl:bool=True, ssl_igninvalid:bool=False, realname:str="SugarcaneParseIRC user", **kwargs): # Contains the configuration
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.context = ssl_module.create_default_context() self.context = ssl_module.create_default_context()
self.wsocket = None self.wsocket = None