make blacklist optional
This commit is contained in:
parent
fa6ac2d4c0
commit
b8243374d4
|
@ -30,7 +30,7 @@ class OppaiBot(irc.IRCClient):
|
||||||
|
|
||||||
self.tags = re.findall(r"\[(.+?)\]", self.config["tags"])
|
self.tags = re.findall(r"\[(.+?)\]", self.config["tags"])
|
||||||
self.tags = [tag.split(",") for tag in self.tags]
|
self.tags = [tag.split(",") for tag in self.tags]
|
||||||
self.blacklist = self.config.get("blacklist").split(",")
|
self.blacklist = self.config.get("blacklist", "").split(",")
|
||||||
|
|
||||||
|
|
||||||
def save_torrent(self, url, directory):
|
def save_torrent(self, url, directory):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user