Philipp Hörist pushed to branch master at gajim / gajim
Commits:
995ade8a by Philipp Hörist at 2017-09-07T16:42:51+02:00
Only log for GC Message for one account
- - - - -
1 changed file:
- gajim/common/connection_handlers.py
Changes:
=====================================
gajim/common/connection_handlers.py
=====================================
--- a/gajim/common/connection_handlers.py
+++ b/gajim/common/connection_handlers.py
@@ -1155,6 +1155,8 @@ class ConnectionHandlersBase:
return True
def _nec_gc_message_received(self, obj):
+ if obj.conn.name != self.name:
+ return
if app.config.should_log(obj.conn.name, obj.jid) and not \
obj.timestamp < obj.conn.last_history_time[obj.jid] and obj.msgtxt and \
obj.nick:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/995ade8a1145d53d7ce279cc46db517f0c…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/995ade8a1145d53d7ce279cc46db517f0c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1a0b7ee1 by Philipp Hörist at 2017-09-06T21:26:40+02:00
Dont lose own JID from bind
_registered_name is None on a smacks resume.
Gajim creates on every connection attempt a new nbxmpp.NonBlockingClient
instance. This is why _registered_name is None when we go through a
smacks resume, because there is no bind event, and the new NonBlockingClient
instance has no knowledge of the previous successful bind.
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -1451,7 +1451,9 @@ class Connection(CommonConnection, ConnectionHandlers):
return
if hasattr(con, 'Resource'):
self.server_resource = con.Resource
- self.registered_name = con._registered_name
+ if con._registered_name is not None:
+ log.info('Bound JID: %s', con._registered_name)
+ self.registered_name = con._registered_name
if app.config.get_per('accounts', self.name, 'anonymous_auth'):
# Get jid given by server
old_jid = app.get_jid_from_account(self.name)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1a0b7ee163f00e7742dc54f6c2a0eefce6…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1a0b7ee163f00e7742dc54f6c2a0eefce6…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8bc2ab09 by Philipp Hörist at 2017-09-03T22:35:56+02:00
Add more log output in case we drop carbons
- - - - -
2 changed files:
- gajim/common/connection.py
- gajim/common/connection_handlers_events.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -741,7 +741,7 @@ class Connection(CommonConnection, ConnectionHandlers):
def check_jid(self, jid):
return helpers.parse_jid(jid)
- def get_own_jid(self):
+ def get_own_jid(self, warn=False):
"""
Return the last full JID we received on a bind event.
In case we were never connected it returns the bare JID from config.
@@ -750,6 +750,8 @@ class Connection(CommonConnection, ConnectionHandlers):
# This returns the full jid we received on the bind event
return self.registered_name
else:
+ if warn:
+ log.warning('only bare JID available')
# This returns the bare jid
return nbxmpp.JID(app.get_jid_from_account(self.name))
=====================================
gajim/common/connection_handlers_events.py
=====================================
--- a/gajim/common/connection_handlers_events.py
+++ b/gajim/common/connection_handlers_events.py
@@ -1156,12 +1156,12 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.encrypted = False
account = self.conn.name
- if self.stanza.getFrom() == self.conn.get_own_jid():
+ if self.stanza.getFrom() == self.conn.get_own_jid(warn=True):
# Drop messages sent from our own full jid
# It can happen that when we sent message to our own bare jid
# that the server routes that message back to us
- log.info('Received message from self: %s, message is dropped'
- % self.stanza.getFrom())
+ log.info('Received message from self: %s, message is dropped',
+ self.stanza.getFrom())
return
# check if the message is a roster item exchange (XEP-0144)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8bc2ab096eeff932b1626d7542bcd8443f…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8bc2ab096eeff932b1626d7542bcd8443f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6bb822f8 by Philipp Hörist at 2017-09-02T12:41:34+02:00
Update gajim manpage
- - - - -
1 changed file:
- data/gajim.1
Changes:
=====================================
data/gajim.1
=====================================
--- a/data/gajim.1
+++ b/data/gajim.1
@@ -1,4 +1,4 @@
-.Dd August 26, 2015
+.Dd September 02, 2017
.Dt GAJIM 1 URM
.Os UNIX
.Sh NAME
@@ -10,8 +10,10 @@
.Nm
.Op Fl q
.Op Fl v
+.Op Fl w
.Op Fl l Ar subsystem=level
.Op Fl p Ar name
+.Op Fl s
.Op Fl c Ar directory
.Sh DESCRIPTION
.Nm
@@ -33,8 +35,12 @@ on the XMPP protocol see <https://xmpp.org/about-xmpp/>.
Show help options
.It Fl q Fl Fl quiet
Show only critical errors
+.It Fl s Fl Fl separate
+Separate profiles completely (even history db and plugins)
.It Fl v Fl Fl verbose
Print xml stanzas and other debug information
+.It Fl w Fl Fl warnings
+Show all GTK warnings with traceback
.It Fl l Fl Fl loglevel Em subsystem=level Bq , Em subsystem=level Bq Em ...
Configure logging system.
Subsystem can be
@@ -74,23 +80,20 @@ is not specified.
Directory where certificates are stored.
.It $XDG_DATA_DIR/gajim/logs.db
The history database log file.
-For more information on database logs see <https://trac.gajim.org/wiki/LogsDatabase>.
+For more information on database logs see
+<https://dev.gajim.org/gajim/gajim/wikis/development/LogsDatabase>.
.El
.Sh AUTHORS
.An -nosplit
.Nm
is written and maintained by
-.An Yann Leboulanger ,
+.An Yann Leboulanger
and
-.An Denis Fomin ,
+.An Philipp Hörist ,
with contributions and patches merged from many individuals around the world.
-See files
-.Pa AUTHORS
-and
-.Pa THANKS ,
-for a complete list.
+See the About Dialog for a complete list.
.Sh COPYRIGHT
-Copyright (C) 2003-2015 Gajim Team
+Copyright (C) 2003-2017 Gajim Team
.Pp
.Nm
is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 3 only.
@@ -103,7 +106,7 @@ You should have received a copy of the GNU General Public License along with
If not, see <https://www.gnu.org/licenses/>.
.Sh FEEDBACK
You can report bugs or feature requests in our bug tracker at
-.Em trac.gajim.org
+.Em https://dev.gajim.org/gajim/gajim/issues
or in the
.Em gajim-devel
mailing list; if you want to send us a patch, please do so in our bug tracker.
@@ -126,9 +129,9 @@ https://lists.gajim.org/cgi-bin/listinfo
.Sh BUGS
Please submit bugs at
.Bd -literal -offset indent
-https://trac.gajim.org/
-https://trac-plugins.gajim.org/
-https://python-nbxmpp.gajim.org/
+https://dev.gajim.org/gajim/gajim/issues
+https://dev.gajim.org/gajim/gajim-plugins
+https://dev.gajim.org/gajim/python-nbxmpp
.Ed
.Sh SEE ALSO
.Xr gajim-remote 1
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6bb822f88494f8363532a321cf67076f88…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6bb822f88494f8363532a321cf67076f88…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5837c470 by Philipp Hörist at 2017-09-02T12:05:32+02:00
Add dummy AUTHORS file
we need this for automake as it seems
- - - - -
a462af55 by Philipp Hörist at 2017-09-02T12:07:14+02:00
Hide License Button only on Windows
- - - - -
2 changed files:
- + AUTHORS
- gajim/dialogs.py
Changes:
=====================================
AUTHORS
=====================================
--- /dev/null
+++ b/AUTHORS
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -1329,7 +1329,9 @@ class AboutDialog(Gtk.AboutDialog):
self.show_all()
# GTK Bug, We have to manually hide the License Button
- self.get_action_area().get_children()[1].hide()
+ # Bug exists only on Windows
+ if os.name == 'nt':
+ self.get_action_area().get_children()[1].hide()
class Dialog(Gtk.Dialog):
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/4372b67433efae9f599fbed2acc501ce8…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/4372b67433efae9f599fbed2acc501ce8…
You're receiving this email because of your account on dev.gajim.org.