diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-05 23:13:18 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-05 23:13:18 +0000 |
commit | 6796ebd99867bae16dd4bbaa23ec23a6105b0abc (patch) | |
tree | e3e5d6ea0b4274958c59fb836b5b6ce3f5050088 /src/gui.py | |
parent | 8134d06d328ffbb0416eeddddb1abb72d12916ff (diff) | |
download | poezio-6796ebd99867bae16dd4bbaa23ec23a6105b0abc.tar.gz poezio-6796ebd99867bae16dd4bbaa23ec23a6105b0abc.tar.bz2 poezio-6796ebd99867bae16dd4bbaa23ec23a6105b0abc.tar.xz poezio-6796ebd99867bae16dd4bbaa23ec23a6105b0abc.zip |
Display a warning if the joined room is logged. fixed #1657
Diffstat (limited to 'src/gui.py')
-rw-r--r-- | src/gui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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' |