blob: 20e922e53355e664b6471ea28cb1a8d84a506aa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
"""
reinvite_to_channel.py - Rejoins a configured channel on invite.
Copyright 2013, Alexander Sulfrian <alex@spline.inf.fu-berlin.de>
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'.*'
|