Commit 6796ebd9 authored by louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13's avatar louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files

Display a warning if the joined room is logged. fixed #1657

parent 8134d06d
......@@ -485,6 +485,11 @@ class Gui(object):
if from_nick.encode('utf-8') == room.own_nick:
room.joined = True
self.add_message_to_room(room, _("Your nickname is %s") % (from_nick))
# Check for a 170 status code
for xtag in stanza.getTags('x'):
for child in xtag.getTags('status'):
if child.getAttr('code') == '170':
self.add_message_to_room(room, 'Warning: this room is publicly logged')
new_user.color = 2
change_nick = stanza.getStatusCode() == '303'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment