summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui.py b/src/gui.py
index 91ed59ab..da3f066a 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -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
else:
change_nick = stanza.getStatusCode() == '303'