@sopel.module.event(u'INVITE')
@sopel.module.rule(u'.*')
@sopel.module.priority(u'low')
def invite_join(bot, trigger):
 if (trigger.admin or bot.config.admin.auto_accept_invite):
  bot.join(trigger.args[1])
  return

@ sopel . module . event ( u'INVITE' ) @ sopel . module . rule ( u'.*' ) @ sopel . module . priority ( u'low' ) def invite_join ( bot , trigger ) : if ( trigger . admin or bot . config . admin . auto_accept_invite ) : bot . join ( trigger . args [ 1 ] ) return
join a channel sopel is invited to .