瀏覽代碼

filter htm(l)

David 10 年之前
父節點
當前提交
953313c12c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bot.py

+ 1 - 1
bot.py

@@ -176,7 +176,7 @@ class IRCClient():
     def list_books(self,f):
         f=open(f,"r")
         lines=f.readlines()
-        lines=[l.strip().replace('\r','') for l in lines if self.EXTENSION in l.lower() and l.startswith('!') and "html" not in l.lower() ]
+        lines=[l.strip().replace('\r','') for l in lines if self.EXTENSION in l.lower() and l.startswith('!') and "htm" not in l.lower() ]
         for l in lines:
             self.log(l)
         return lines