Update __init__.py
This commit is contained in:
parent
1145c0402b
commit
9d3ff0aeb1
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class IRCSession: # Actual IRC session
|
||||||
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Socket
|
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 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, port:int, nick:str, user:str, ssl:bool, ssl_igninvalid:bool, **kwargs): # Contains the configuration
|
def __init__(self, address:str="irc.libera.chat", port:int=6697, nick:str="sweetAsSugar", user:str="sugarCaneIRC", ssl:bool=True, ssl_igninvalid:bool=False, **kwargs): # Contains the configuration
|
||||||
self.server, self.port, self.nick, self.user, self.ssl, self.ssl_accept_invalid = address,port,nick,user,ssl,ssl_igninvalid
|
self.server, self.port, self.nick, self.user, self.ssl, self.ssl_accept_invalid = address,port,nick,user,ssl,ssl_igninvalid
|
||||||
if ssl:
|
if ssl:
|
||||||
if ssl_igninvalid:
|
if ssl_igninvalid:
|
||||||
|
|
Loading…
Add table
Reference in a new issue