summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-09-18 10:30:51 +0200
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-09-18 10:30:51 +0200
commit071d35372a6cc51801fecaae0413a447bf7162f4 (patch)
tree6277eda0ddae5b0abbc4538c006156ac09a87120
downloadreinvite-to-channel-071d35372a6cc51801fecaae0413a447bf7162f4.tar.gz
reinvite-to-channel-071d35372a6cc51801fecaae0413a447bf7162f4.tar.bz2
reinvite-to-channel-071d35372a6cc51801fecaae0413a447bf7162f4.zip
inital commit
-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'.*'