summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--reinvite_to_channel.py14
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pyc
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'.*'