summaryrefslogtreecommitdiffstats
path: root/reinvite_to_channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'reinvite_to_channel.py')
-rw-r--r--reinvite_to_channel.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/reinvite_to_channel.py b/reinvite_to_channel.py
new file mode 100644
index 0000000..20e922e
--- /dev/null
+++ b/reinvite_to_channel.py
@@ -0,0 +1,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'.*'