#!/usr/bin/env python """ reinvite_to_channel.py - Rejoins a configured channel on invite. Copyright 2013, Alexander Sulfrian Licensed under the Eiffel Forum License 2. http://inamidst.com/phenny/ """ def message_invite(phenny, input): if input in phenny.config.channels: phenny.write(['JOIN'], input) message_invite.event = 'INVITE' message_invite.rule = r'.*'