diff --git a/modules/accept_invite.py b/modules/accept_invite.py index 8c0368b2..57ba9d70 100644 --- a/modules/accept_invite.py +++ b/modules/accept_invite.py @@ -6,4 +6,5 @@ class Module(object): self.on_invite) def on_invite(self, event): - event["server"].send_join(event["target_channel"]) + if event["server"].get_setting("accept-invites", True): + event["server"].send_join(event["target_channel"])