Update __init__.py
This commit is contained in:
parent
363ca21c48
commit
aafd3e552d
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ class IRCSession: # Actual IRC session
|
||||||
self.wsocket.send(bytes(content,"UTF-8"))
|
self.wsocket.send(bytes(content,"UTF-8"))
|
||||||
else:
|
else:
|
||||||
self.socket.send(bytes(content,"UTF-8"))
|
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.send("QUIT :" + message + "\n")
|
||||||
self.connected = False
|
self.connected = False
|
||||||
def join(self, chan):
|
def join(self, chan):
|
||||||
self.chans.append(channel(chan))
|
self.chans.append(channel(chan))
|
||||||
|
|
Loading…
Add table
Reference in a new issue