X-Git-Url: https://jfr.im/git/irc/weechat/qweechat.git/blobdiff_plain/3a5ec0c16368a796ebf9211dfe0e3f3f69dd74dd..0cf8a9befc25998c944e667cc4dc463015a3d27f:/src/qweechat/config.py diff --git a/src/qweechat/config.py b/src/qweechat/config.py index 0dc3635..3093017 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'), @@ -75,7 +74,14 @@ CONFIG_DEFAULT_COLOR_OPTIONS = (('separator', '#000066'), # 0 ('chat_tags', '#000000'), # 34 ('chat_inactive_window', '#000000'), # 35 ('chat_inactive_buffer', '#000000'), # 36 - ('chat_prefix_buffer_inactive_buffer', '#000000')) # 37 + ('chat_prefix_buffer_inactive_buffer', '#000000'), # 37 + ('chat_nick_offline', '#000000'), # 38 + ('chat_nick_offline_highlight', '#000000'), # 39 + ('chat_nick_prefix', '#000000'), # 40 + ('chat_nick_suffix', '#000000'), # 41 + ('emphasis', '#000000'), # 42 + ('chat_day_change', '#000000'), #43 + ) config_color_options = [] @@ -112,7 +118,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)