Update __init__.py

This commit is contained in:
Swee 2024-10-20 10:39:20 -07:00
parent 363ca21c48
commit aafd3e552d

View file

@ -61,7 +61,7 @@ class IRCSession: # Actual IRC session
self.wsocket.send(bytes(content,"UTF-8"))
else:
self.socket.send(bytes(content,"UTF-8"))
def quit(self, message:str=f"ScParseIRC v{__version__}"):
def quit(self, message:str="ScParseIRC v" + str(__version__)): # Send the server a signal that the client is about to quit, and rely on the server to close the connection.
self.send("QUIT :" + message + "\n")
self.connected = False
def join(self, chan):