this is a property of team

This commit is contained in:
Thomas Steen Rasmussen 2018-04-13 22:01:05 +02:00
parent 65e225f4b1
commit f73c6a1a11

View file

@ -321,7 +321,7 @@ class Plugin(object):
logger.debug("Found %s memberships which need IRC ACL fixing.." % missing_acls.count()) logger.debug("Found %s memberships which need IRC ACL fixing.." % missing_acls.count())
for membership in missing_acls: for membership in missing_acls:
# add to team public channel? # add to team public channel?
if membership.team.public_irc_channel_name and membership.public_irc_channel_managed: if membership.team.public_irc_channel_name and membership.team.public_irc_channel_managed:
self.bot.add_user_to_channel_acl( self.bot.add_user_to_channel_acl(
username=membership.user.profile.nickserv_username, username=membership.user.profile.nickserv_username,
channel=membership.team.public_irc_channel_name, channel=membership.team.public_irc_channel_name,
@ -329,7 +329,7 @@ class Plugin(object):
) )
# add to team private channel? # add to team private channel?
if membership.team.private_irc_channel_name and membership.private_irc_channel_managed: if membership.team.private_irc_channel_name and membership.team.private_irc_channel_managed:
self.bot.add_user_to_channel_acl( self.bot.add_user_to_channel_acl(
username=membership.user.profile.nickserv_username, username=membership.user.profile.nickserv_username,
channel=membership.team.private_irc_channel_name, channel=membership.team.private_irc_channel_name,