|
|
@ -171,8 +171,8 @@ class Bot(object): |
|
|
|
def msg_handler(self): # pragma: no cover (this excludes this function from testing) |
|
|
|
new_msg = self.ircsock.recv(2048) # receive data from the server |
|
|
|
if not new_msg: |
|
|
|
print "Empty recv." |
|
|
|
new_msg='' |
|
|
|
print "Empty recv. It seems I’ve lost my mind. I stop to be reborn." |
|
|
|
sys.exit(7) |
|
|
|
else: |
|
|
|
new_msg = new_msg.strip('\n\r') # removing any unnecessary linebreaks |
|
|
|
if new_msg != '' and new_msg.find("PING :") == -1: |
|
|
|