summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-08-21 17:15:51 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-08-22 00:54:25 +0530
commit4d57a1faf967fa4b5a0dcdd9e19bc413545616d9 (patch)
tree475bd92f9a8c57aecf9644f46de98fdc415e7479
parent254b8953c4a63416a7d49088990bbd2768ca4ec6 (diff)
downloadpoezio-4d57a1faf967fa4b5a0dcdd9e19bc413545616d9.tar.gz
poezio-4d57a1faf967fa4b5a0dcdd9e19bc413545616d9.tar.bz2
poezio-4d57a1faf967fa4b5a0dcdd9e19bc413545616d9.tar.xz
poezio-4d57a1faf967fa4b5a0dcdd9e19bc413545616d9.zip
Used named arguments instead of comments for 'add_message'.
-rw-r--r--poezio/mam.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/poezio/mam.py b/poezio/mam.py
index c352ac7f..92899284 100644
--- a/poezio/mam.py
+++ b/poezio/mam.py
@@ -49,17 +49,17 @@ def add_line(tab, text_buffer: TextBuffer, text: str, str_time: str, nick: str,
nick = nick.split('/')[0]
color = get_theme().COLOR_OWN_NICK
text_buffer.add_message(
- text,
- time,
- nick,
- color,
- True, # History
- None, # User
- False, # Highlight
- top, #Top
- None, # Identifier
- None, # str_time
- None, # Jid
+ txt=text,
+ time=time,
+ nickname=nick,
+ nick_color=color,
+ history=True,
+ user=None,
+ highlight=False,
+ top=top,
+ identifier=None,
+ str_time=None,
+ jid=None,
)
async def query(tab, remote_jid, top, start=None, end=None, before=None):