Fix another thing related to Room removale
This commit is contained in:
parent
aa78a454fb
commit
7d861ee885
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ class ChatTab(Tab):
|
|||
# build the list of the recent words
|
||||
char_we_dont_want = string.punctuation+' '
|
||||
words = list()
|
||||
for msg in self.messages[:-40:-1]:
|
||||
for msg in self._text_buffer.messages[:-40:-1]:
|
||||
if not msg:
|
||||
continue
|
||||
txt = xhtml.clean_text(msg.txt)
|
||||
|
@ -494,7 +494,7 @@ class MucTab(ChatTab):
|
|||
"""
|
||||
/clear
|
||||
"""
|
||||
self.messages = []
|
||||
self._text_buffer.messages = []
|
||||
self.text_win.rebuild_everything(self._text_buffer)
|
||||
self.refresh()
|
||||
self.core.doupdate()
|
||||
|
|
Loading…
Reference in a new issue