Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: channels joined by invitation are not saved to config #2567

Open
dgw opened this issue Nov 26, 2023 · 0 comments
Open

admin: channels joined by invitation are not saved to config #2567

dgw opened this issue Nov 26, 2023 · 0 comments
Labels
Needs Triage Issues that need to be reviewed and categorized Tweak

Comments

@dgw
Copy link
Member

dgw commented Nov 26, 2023

@plugin.event('INVITE')
@plugin.priority('low')
def invite_join(bot, trigger):
"""Join a channel Sopel is invited to, if the inviter is an admin."""
channel = trigger.args[1]
if trigger.admin:
LOGGER.info(
'Got invited to "%s" by an admin.', channel)
bot.join(channel)
elif bot.config.admin.auto_accept_invite:
LOGGER.info(
'Got invited to "%s"; admin.auto_accept_invite is on', channel)
bot.join(channel)

The docstring is a bit incorrect, too, given auto_accept_invite.

Not saving channel membership resulting from invitations appears to trace all the way back to #1492 for 7.0.

(Yes, I'm intentionally leaving this out of 8.0.)

@dgw dgw added Tweak Needs Triage Issues that need to be reviewed and categorized labels Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Triage Issues that need to be reviewed and categorized Tweak
Projects
None yet
Development

No branches or pull requests

1 participant