From 27fe72ff3e7dfebd43ba122c2287fc6a9eb8fb29 Mon Sep 17 00:00:00 2001 From: janandjohn3 Date: Thu, 26 Jun 2014 17:13:45 -0500 Subject: [PATCH] Add config option and auto-invite feature! --- admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin.py b/admin.py index c9d57f9276..41df93cbd6 100644 --- a/admin.py +++ b/admin.py @@ -22,6 +22,7 @@ def configure(config): | hold_ground | False | Auto re-join on kick | """ config.add_option('admin', 'hold_ground', "Auto re-join on kick") + config.add_option('admin', 'auto_accept_invites', "Auto Accept All Invites") @willie.module.commands('join') @@ -131,7 +132,7 @@ def invite_join(bot, trigger): """ Join a channel willie is invited to, if the inviter is an admin. """ - if not trigger.admin: + if not trigger.admin and not bot.config.admin.auto_accept_invite: return bot.join(trigger.args[1])