瀏覽代碼

bin/darkirc: [bots] strip response of whitspaces

Dastan-glitch 2 年之前
父節點
當前提交
388dec06db
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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()