Update __init__.py
This commit is contained in:
parent
9d3ff0aeb1
commit
f22f004b4e
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue