Improve coding of [1869].

--Cette ligne, et les suivantes ci-dessous,
seront ignorées--

M    src/groupchat_control.py
This commit is contained in:
Julien Pivotto 2007-05-21 21:39:58 +00:00
parent 05542130fa
commit 68ec9fec2e
1 changed files with 4 additions and 4 deletions

View File

@ -669,11 +669,11 @@ class GroupchatControl(ChatControlBase):
other_tags_for_name, [], other_tags_for_text, xhtml = xhtml) other_tags_for_name, [], other_tags_for_text, xhtml = xhtml)
def get_nb_unread(self): def get_nb_unread(self):
nb = len(gajim.events.get_events(self.account, self.room_jid, type_events = ['printed_marked_gc_msg']
['printed_marked_gc_msg']))
if gajim.config.get('notify_on_all_muc_messages'): if gajim.config.get('notify_on_all_muc_messages'):
nb += len(gajim.events.get_events(self.account, self.room_jid, type_events.append('printed_gc_msg')
['printed_gc_msg'])) nb = len(gajim.events.get_events(self.account, self.room_jid,
type_events))
nb += self.get_nb_unread_pm() nb += self.get_nb_unread_pm()
return nb return nb