From 5cad6661c9437832e23469aba2c9f04d94b734ee Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Sat, 8 Mar 2008 11:35:25 +0000 Subject: [PATCH] Added a README and server password configurability. --- README.txt | 10 ++++++++++ modules/startup.py | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 README.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..4edf7c0 --- /dev/null +++ b/README.txt @@ -0,0 +1,10 @@ +Installation &c. + +1) Run ./phenny - this creates a default config file +2) Edit ~/.phenny/default.py +3) Run ./phenny - this now runs phenny with your settings + +Enjoy! + +-- +Sean B. Palmer, http://inamidst.com/sbp/ diff --git a/modules/startup.py b/modules/startup.py index 1fd7348..6fc7fae 100755 --- a/modules/startup.py +++ b/modules/startup.py @@ -8,6 +8,9 @@ http://inamidst.com/phenny/ """ def startup(phenny, input): + if hasattr(phenny.config, 'serverpass'): + phenny.write(('PASS', phenny.config.serverpass)) + if hasattr(phenny.config, 'password'): phenny.msg('NickServ', 'IDENTIFY %s' % phenny.config.password) __import__('time').sleep(5)