]> jfr.im git - irc/weechat/qweechat.git/blobdiff - src/qweechat/config.py
Add icon "document-save.png" for entry "Save connection" in File menu
[irc/weechat/qweechat.git] / src / qweechat / config.py
index 0dc36351c28f8e738d8f534e89f6ffa20899e338..efcaff71b3db3c507081b37fa53c03fe75e55aab 100644 (file)
@@ -1,7 +1,9 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org>
+# config.py - configuration for QWeeChat (~/.qweechat/qweechat.conf)
+#
+# Copyright (C) 2011-2013 Sebastien Helleu <flashcode@flashtux.org>
 #
 # This file is part of QWeeChat, a Qt remote GUI for WeeChat.
 #
 # along with QWeeChat.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-#
-# 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)