From 7931fab14599b739c18c8f1ebcc24b75688dbc09 Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Thu, 21 Feb 2008 12:06:33 +0000 Subject: Phenny2, now being tested on Freenode as the main phenny. --- modules/startup.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/startup.py (limited to 'modules/startup.py') diff --git a/modules/startup.py b/modules/startup.py new file mode 100644 index 0000000..1fd7348 --- /dev/null +++ b/modules/startup.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +""" +startup.py - Phenny Startup Module +Copyright 2008, Sean B. Palmer, inamidst.com +Licensed under the Eiffel Forum License 2. + +http://inamidst.com/phenny/ +""" + +def startup(phenny, input): + if hasattr(phenny.config, 'password'): + phenny.msg('NickServ', 'IDENTIFY %s' % phenny.config.password) + __import__('time').sleep(5) + + # Cf. http://swhack.com/logs/2005-12-05#T19-32-36 + for channel in phenny.channels: + phenny.write(('JOIN', channel)) +startup.rule = r'(.*)' +startup.event = '251' +startup.priority = 'low' + +if __name__ == '__main__': + print __doc__.strip() -- cgit v1.2.3-1-g7c22