* If the room bookmark has no print_status defined, then default to

configured print_status_in_muc
This commit is contained in:
Alex Mauer 2006-05-16 22:30:55 +00:00
parent e58130611d
commit b82a36083e
1 changed files with 2 additions and 5 deletions

View File

@ -843,12 +843,9 @@ class GroupchatControl(ChatControlBase):
found = False
for bookmark in gajim.connections[self.account].bookmarks:
if bookmark['jid'] == self.room_jid:
found = True
print_status=bookmark['print_status']
break
print_status = None
if found:
print_status = bookmark['print_status']
else:
if print_status is None:
print_status = gajim.config.get('print_status_in_muc')
if show == 'offline' and print_status in ('all', 'in_and_out'):
st = _('%s has left') % nick