From 721aa3577ec9ff08fa1c4472a4c5bf36567a1763 Mon Sep 17 00:00:00 2001 From: Brendan Molloy Date: Sun, 12 Sep 2010 21:38:51 +1000 Subject: [PATCH] Add SSL support (correctly, this time.) --- phenny | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/phenny b/phenny index f7fdcc4..8d4dc66 100755 --- a/phenny +++ b/phenny @@ -25,8 +25,6 @@ def check_python_version(): def create_default_config(fn): f = open(fn, 'w') print >> f, trim("""\ - import os - nick = 'phenny' host = 'irc.example.net' port = 6667 @@ -48,7 +46,7 @@ def create_default_config(fn): # Directories to load user modules from # e.g. /path/to/my/modules - extra = ['os.path.expanduser("~/.phenny/modules")'] + extra = [] # Services to load: maps channel names to white or black lists external = { @@ -63,8 +61,7 @@ def create_default_config(fn): def create_dotdir(dotdir): print 'Creating a config directory at ~/.phenny...' - try: - os.mkdir(dotdir) + try: os.mkdir(dotdir) except Exception, e: print >> sys.stderr, 'There was a problem creating %s:' % dotdir print >> sys.stderr, e.__class__, str(e) @@ -73,7 +70,6 @@ def create_dotdir(dotdir): print 'Creating a default config file at ~/.phenny/default.py...' default = os.path.join(dotdir, 'default.py') - os.mkdir(os.path.join(dotdir, 'modules')) create_default_config(default) print 'Done; now you can edit default.py, and run phenny! Enjoy.'