Fix commit 6e699816 (bot always joined on invite)

This commit is contained in:
Valentin Lorentz 2012-01-04 21:11:02 +01:00
parent 1fd0657da8
commit 6e32d10d0d

View File

@ -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)