Browse Source

bin/darkirc: [bots] strip response of whitspaces

Dastan-glitch 2 năm trước cách đây
mục cha
commit
388dec06db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/darkirc/script/bots/irc.py

+ 1 - 1
bin/darkirc/script/bots/irc.py

@@ -35,4 +35,4 @@ class IRC:
         if resp.find('PING') != -1:                      
             self.irc.send(bytes('PONG ' + msg + '\r\n', "UTF-8")) 
  
-        return resp
+        return resp.strip()