changeset 1edc01235c3e in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=1edc01235c3e
description: correctly check JID when creating an anonymous account. Fixes #7116

diffstat:

 src/config.py |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 2cdc9da8162a -r 1edc01235c3e src/config.py
--- a/src/config.py     Fri Mar 09 08:40:21 2012 +0100
+++ b/src/config.py     Fri Mar 09 08:45:47 2012 +0100
@@ -3655,7 +3655,11 @@
             password = self.xml.get_object('password_entry').get_text().decode(
                 'utf-8')
 
-            jid = username + '@' + server
+            if anonymous:
+                jid = ''
+            else:
+                jid = username + '@'
+            jid += server
             # check if jid is conform to RFC and stringprep it
             try:
                 jid = helpers.parse_jid(jid)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to