From fdbe98832d74037da66dc1e2aa6adb8339552a02 Mon Sep 17 00:00:00 2001 From: MarkusRost <2701034-MarkusRost@users.noreply.gitlab.com> Date: Thu, 14 Sep 2023 12:01:43 +0000 Subject: [PATCH] Add newusers/migrated event --- src/formatters/rc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/formatters/rc.py b/src/formatters/rc.py index dd619e8..77d02e8 100644 --- a/src/formatters/rc.py +++ b/src/formatters/rc.py @@ -325,6 +325,8 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c content = _("Account [{author}]({author_url}) was created").format(author=author, author_url=author_url) elif action == "newusers/reclaim": content = _("Account [{author}]({author_url}) was reclaimed").format(author=author, author_url=author_url) + elif action == "newusers/migrated": + content = _("Account [{author}]({author_url}) was migrated").format(author=author, author_url=author_url) elif action == "interwiki/iw_add": link = link_formatter(create_article_path("Special:Interwiki", WIKI_ARTICLE_PATH)) content = _("[{author}]({author_url}) added an entry to the [interwiki table]({table_url}) pointing to {website} with {prefix} prefix").format(author=author, author_url=author_url, desc=parsed_comment, @@ -983,6 +985,9 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha elif action == "newusers/reclaim": link = author_url embed["title"] = _("Reclaimed account") + elif action == "newusers/migrated": + link = author_url + embed["title"] = _("Migrated account") elif action == "interwiki/iw_add": link = create_article_path("Special:Interwiki", WIKI_ARTICLE_PATH) embed["title"] = _("Added an entry to the interwiki table")