allow blacklisting channels (won't join when invited)
This commit is contained in:
parent
1ffe8c91ef
commit
1d78cce8be
@ -34,6 +34,7 @@ class config(config):
|
|||||||
nickserv_recover = "RECOVER" # I recall it being GHOST on some networks?
|
nickserv_recover = "RECOVER" # I recall it being GHOST on some networks?
|
||||||
channel = "#bots"
|
channel = "#bots"
|
||||||
autojoin = ["#some-other", "##channels"]
|
autojoin = ["#some-other", "##channels"]
|
||||||
|
blacklisted_channels=[]
|
||||||
|
|
||||||
class admin:
|
class admin:
|
||||||
# ircv3 account-tag based admin
|
# ircv3 account-tag based admin
|
||||||
|
2
stuff.py
2
stuff.py
@ -162,7 +162,7 @@ def stuff(bot, sock):
|
|||||||
else:
|
else:
|
||||||
nick_override = False
|
nick_override = False
|
||||||
if line.command == "INVITE":
|
if line.command == "INVITE":
|
||||||
send(irctokens.build("JOIN", [line.params[1]]).format())
|
send(irctokens.build("JOIN", [line.params[1]]).format()) if line.params[1] not in config.server.blacklisted_channels else None
|
||||||
elif line.command == "PRIVMSG":
|
elif line.command == "PRIVMSG":
|
||||||
if line.tags == None or "batch" not in line.tags:
|
if line.tags == None or "batch" not in line.tags:
|
||||||
is_pm = False
|
is_pm = False
|
||||||
|
Loading…
Reference in New Issue
Block a user