Update __init__.py

This commit is contained in:
Swee 2024-10-20 12:47:13 -07:00
parent 759a3c0148
commit 5bcb11f09d

View file

@ -78,6 +78,7 @@ class IRCSession: # Actual IRC session
self.send(f"PART {chan}") self.send(f"PART {chan}")
def privmsg(self, target:str, content:str): def privmsg(self, target:str, content:str):
self.send(f"PRIVMSG {target} :{content}") self.send(f"PRIVMSG {target} :{content}")
self.messages.append(Message(content=content, chan=target, nick=self.nick))
def close(self): def close(self):
if self.ssl: if self.ssl:
self.wsocket.close() self.wsocket.close()