added a way to prevent bitbot accepting invites

This commit is contained in:
jesopo 2018-07-19 14:39:29 +01:00
parent e99671aced
commit 6213ba5f61

View file

@ -6,4 +6,5 @@ class Module(object):
self.on_invite)
def on_invite(self, event):
if event["server"].get_setting("accept-invites", True):
event["server"].send_join(event["target_channel"])