primitivus (chat): fixed filters clearing when changing filter while one already exists
This commit is contained in:
parent
e784c1694c
commit
be443a043f
1 changed files with 1 additions and 2 deletions
|
|
@ -276,12 +276,11 @@ class Chat(PrimitivusWidget, quick_chat.QuickChat):
|
|||
empty list to clear all filters
|
||||
only lang=XX is handled for now
|
||||
"""
|
||||
del self.filters[:]
|
||||
if args:
|
||||
if args[0].startswith("lang="):
|
||||
lang = args[0][5:].strip()
|
||||
self.filters.append(lambda mess_data: lang in mess_data.message)
|
||||
else:
|
||||
del self.filters[:]
|
||||
|
||||
del self.mess_walker[:]
|
||||
for message in self.messages.itervalues():
|
||||
|
|
|
|||
Loading…
Reference in a new issue