diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-11 15:45:28 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-11 15:45:28 +0000 |
commit | 508bf5d5614936a270d73a4e2f8fd5f468c5e0cb (patch) | |
tree | ae210a45a2aeefa45fd9d0f7b5ce468449840fb2 /src/gui.py | |
parent | 374ab23b42113453beff1010a2354697d16552b7 (diff) | |
download | poezio-508bf5d5614936a270d73a4e2f8fd5f468c5e0cb.tar.gz poezio-508bf5d5614936a270d73a4e2f8fd5f468c5e0cb.tar.bz2 poezio-508bf5d5614936a270d73a4e2f8fd5f468c5e0cb.tar.xz poezio-508bf5d5614936a270d73a4e2f8fd5f468c5e0cb.zip |
don't add the ',' after a last-word completion.
Diffstat (limited to 'src/gui.py')
-rw-r--r-- | src/gui.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -292,8 +292,10 @@ class Gui(object): """ room.users.remove(user) by = presence.find('{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}item/{http://jabber.org/protocol/muc#user}actor') + from common import debug + debug('KICK: by:%s %s, %s\n' % (presence, by, by.attrib['jid'] if by else by)) reason = presence.find('{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}item/{http://jabber.org/protocol/muc#user}reason') - by = by.attrib['jid'] if by else '' + by = by.attrib['jid'] if by is not None else None reason = reason.text# if reason else '' if from_nick == room.own_nick: # we are kicked room.disconnect() @@ -306,7 +308,7 @@ class Gui(object): muc.join_groupchat(self.xmpp, room.name, room.own_nick) else: if by: - kick_msg = _('%(spec)s "[%(nick)s]" has been kicked by ["%(by)s]"') % {'spec':theme.CHAR_KICK.replace('"', '\\"'), 'nick':from_nick.replace('"', '\\"'), 'by':by.replace('"', '\\"')} + kick_msg = _('%(spec)s "[%(nick)s]" has been kicked by "[%(by)s]"') % {'spec':theme.CHAR_KICK.replace('"', '\\"'), 'nick':from_nick.replace('"', '\\"'), 'by':by.replace('"', '\\"')} else: kick_msg = _('%(spec)s "[%(nick)s]" has been kicked') % {'spec':theme.CHAR_KICK, 'nick':from_nick.replace('"', '\\"')} if reason: @@ -531,7 +533,7 @@ class Gui(object): word = word.replace(char, '') if len(word) > 5: words.append(word) - self.window.input.auto_completion(words) + self.window.input.auto_completion(words, False) def go_to_important_room(self): """ |