Used named arguments instead of comments for 'add_message'.
This commit is contained in:
parent
254b8953c4
commit
4d57a1faf9
1 changed files with 11 additions and 11 deletions
|
@ -49,17 +49,17 @@ def add_line(tab, text_buffer: TextBuffer, text: str, str_time: str, nick: str,
|
||||||
nick = nick.split('/')[0]
|
nick = nick.split('/')[0]
|
||||||
color = get_theme().COLOR_OWN_NICK
|
color = get_theme().COLOR_OWN_NICK
|
||||||
text_buffer.add_message(
|
text_buffer.add_message(
|
||||||
text,
|
txt=text,
|
||||||
time,
|
time=time,
|
||||||
nick,
|
nickname=nick,
|
||||||
color,
|
nick_color=color,
|
||||||
True, # History
|
history=True,
|
||||||
None, # User
|
user=None,
|
||||||
False, # Highlight
|
highlight=False,
|
||||||
top, #Top
|
top=top,
|
||||||
None, # Identifier
|
identifier=None,
|
||||||
None, # str_time
|
str_time=None,
|
||||||
None, # Jid
|
jid=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def query(tab, remote_jid, top, start=None, end=None, before=None):
|
async def query(tab, remote_jid, top, start=None, end=None, before=None):
|
||||||
|
|
Loading…
Reference in a new issue