X-Git-Url: https://jfr.im/git/irc/weechat/qweechat.git/blobdiff_plain/3a5ec0c16368a796ebf9211dfe0e3f3f69dd74dd..9587cb0afb338b7f7a56b6c2eedada509c96f102:/src/qweechat/config.py diff --git a/src/qweechat/config.py b/src/qweechat/config.py index 0dc3635..efcaff7 100644 --- a/src/qweechat/config.py +++ b/src/qweechat/config.py @@ -1,7 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # -# Copyright (C) 2011 Sebastien Helleu +# config.py - configuration for QWeeChat (~/.qweechat/qweechat.conf) +# +# Copyright (C) 2011-2013 Sebastien Helleu # # This file is part of QWeeChat, a Qt remote GUI for WeeChat. # @@ -19,10 +21,6 @@ # along with QWeeChat. If not, see . # -# -# Configuration for QWeeChat (~/.qweechat/qweechat.conf) -# - import os, ConfigParser import weechat.color as color @@ -32,6 +30,7 @@ CONFIG_FILENAME = '%s/qweechat.conf' % CONFIG_DIR CONFIG_DEFAULT_SECTIONS = ('relay', 'look', 'color') CONFIG_DEFAULT_OPTIONS = (('relay.server', ''), ('relay.port', ''), + ('relay.ssl', 'off'), ('relay.password', ''), ('relay.autoconnect', 'off'), ('look.debug', 'off'), @@ -112,7 +111,7 @@ def read(): def write(config): """Write config file.""" if not os.path.exists(CONFIG_DIR): - os.mkdir(CONFIG_DIR, 0755) + os.mkdir(CONFIG_DIR, 0o0755) with open(CONFIG_FILENAME, 'wb') as cfg: config.write(cfg)