Invite members to the chatroom on a user's behalf

def do_invite(self, sender, body, args):
        """Invite members to the chatroom on a user's behalf"""
        for invitee in args:
            new_member = { 'JID': invitee }
            self.invite_user(new_member, inviter=sender)