diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 15:40:03 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 15:40:03 +0000 |
commit | accfe046bea252f12ecd441bee348d3cd7e1bf84 (patch) | |
tree | 94a825763c0c2cdf1d58f09d4e7be4d767a9b99c /src/gui.py | |
parent | b723a94efc19f1af7ecd14bb3d94ceb9e646a169 (diff) | |
download | poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.gz poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.bz2 poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.xz poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.zip |
/quit can have a message. fixed #1488
Diffstat (limited to 'src/gui.py')
-rw-r--r-- | src/gui.py | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -19,13 +19,22 @@ from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset, gettext as _) +from os.path import isfile -bindtextdomain('poezio') -textdomain('poezio') -bind_textdomain_codeset('poezio', 'utf-8') +from time import sleep + +# if isfile('../locale/poezio.pot'): +# localedir = '../locale' +# else: +# localedir = '/usr/share/locale' + +# bindtextdomain('poezio', localedir) +# textdomain('poezio') +# bind_textdomain_codeset('poezio', 'utf-8') + +# import locale +# locale.setlocale(locale.LC_ALL, '') -import locale -locale.setlocale(locale.LC_ALL, '') import sys import curses @@ -824,5 +833,12 @@ class Gui(object): """ /quit """ + if len(args): + msg = ' '.join(args) + else: + msg = None + if msg: + self.muc.disconnect(self.rooms, msg) + sleep(0.2) # :( self.reset_curses() sys.exit() |