changeset 1e98e2bfd3b2 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=1e98e2bfd3b2
description: remove useless test
diffstat:
src/common/connection_handlers.py | 2 --
src/common/protocol/bytestream.py | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r a19603a11f64 -r 1e98e2bfd3b2 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Sun Sep 14 14:47:03 2014 +0200
+++ b/src/common/connection_handlers.py Mon Sep 15 14:03:52 2014 +0200
@@ -1232,8 +1232,6 @@
if obj.mtype == 'error':
if not obj.msgtxt:
obj.msgtxt = _('message')
- if not obj.msgtxt:
- return True
self.dispatch_error_message(obj.stanza, obj.msgtxt,
obj.session, obj.fjid, obj.timestamp)
return True
diff -r a19603a11f64 -r 1e98e2bfd3b2 src/common/protocol/bytestream.py
--- a/src/common/protocol/bytestream.py Sun Sep 14 14:47:03 2014 +0200
+++ b/src/common/protocol/bytestream.py Mon Sep 15 14:03:52 2014 +0200
@@ -393,7 +393,7 @@
my_ips = [self.peerhost[0]] # The ip we're connected to server with
# all IPs from local DNS
for addr in socket.getaddrinfo(socket.gethostname(), None):
- if not addr[4][0] in my_ips and not addr[4][0].startswith('127'):
+ if not addr[4][0] in my_ips and not addr[4][0].startswith('127') and not addr[4][0] == '::1':
my_ips.append(addr[4][0])
sender = file_props.sender
changeset 79e2b01a9cab in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=79e2b01a9cab
description: show first part of the JID in actions -> join group chat menu when there is no name.
diffstat:
src/roster_window.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r e35390f7ae37 -r 79e2b01a9cab src/roster_window.py
--- a/src/roster_window.py Thu Jul 10 20:30:20 2014 +0200
+++ b/src/roster_window.py Mon Aug 11 22:10:23 2014 +0200
@@ -6108,8 +6108,13 @@
gc_sub_menu.append(item)
for bookmark in gajim.connections[account].bookmarks:
+ name = bookmark['name']
+ if bookmark['name'] == '':
+ # No name was given for this bookmark.
+ # Use the first part of JID instead...
+ name = bookmark['jid'].split("@")[0]
# Do not use underline.
- item = Gtk.MenuItem.new_with_label(bookmark['name'])
+ item = Gtk.MenuItem.new_with_label(name)
item.set_use_underline(False)
item.connect('activate', self.on_bookmark_menuitem_activate,
account, bookmark)
changeset 4754b56ec030 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=4754b56ec030
description: correctly detect when no name is provided for bookmarks
diffstat:
src/config.py | 2 +-
src/roster_window.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 79e2b01a9cab -r 4754b56ec030 src/config.py
--- a/src/config.py Mon Aug 11 22:10:23 2014 +0200
+++ b/src/config.py Mon Aug 11 22:16:11 2014 +0200
@@ -3185,7 +3185,7 @@
None, None, None, None])
for bookmark in gajim.connections[account].bookmarks:
- if bookmark['name'] == '':
+ if not bookmark['name']:
# No name was given for this bookmark.
# Use the first part of JID instead...
name = bookmark['jid'].split("@")[0]
diff -r 79e2b01a9cab -r 4754b56ec030 src/roster_window.py
--- a/src/roster_window.py Mon Aug 11 22:10:23 2014 +0200
+++ b/src/roster_window.py Mon Aug 11 22:16:11 2014 +0200
@@ -6109,7 +6109,7 @@
for bookmark in gajim.connections[account].bookmarks:
name = bookmark['name']
- if bookmark['name'] == '':
+ if not name:
# No name was given for this bookmark.
# Use the first part of JID instead...
name = bookmark['jid'].split("@")[0]