From 6e32d10d0d70d51bb05098660c950075e457c2c9 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 4 Jan 2012 21:11:02 +0100 Subject: [PATCH] Fix commit 6e699816 (bot always joined on invite) --- plugins/Admin/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Admin/plugin.py b/plugins/Admin/plugin.py index c82e44b67..7a42c98a7 100644 --- a/plugins/Admin/plugin.py +++ b/plugins/Admin/plugin.py @@ -117,7 +117,7 @@ class Admin(callbacks.Plugin): def doInvite(self, irc, msg): channel = msg.args[1] if channel not in irc.state.channels: - if conf.supybot.alwaysJoinOnInvite.get(channel) or \ + if conf.supybot.alwaysJoinOnInvite.get(channel)() or \ ircdb.checkCapability(msg.prefix, 'admin'): self.log.info('Invited to %s by %s.', channel, msg.prefix) networkGroup = conf.supybot.networks.get(irc.network)