Ver Fonte

bin/darkirc: [bots] strip response of whitspaces

Dastan-glitch há 2 anos atrás
pai
commit
388dec06db
1 ficheiros alterados com 1 adições e 1 exclusões
  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()