Update __init__.py

This commit is contained in:
Swee 2024-10-19 20:58:17 -07:00
parent 9d3ff0aeb1
commit f22f004b4e

View file

@ -51,7 +51,10 @@ class IRCSession: # Actual IRC session
return False
def get(self): # Attempt to get the raw data and parse it.
# The code is copied from sweeBotIRC btw
r = self.socket.recv(2040).decode()
if self.ssl:
r = self.wsocket.recv(2040).decode()
else:
r = self.socket.recv(2040).decode()
self.raw_text += r
self.parseall()
print(r)