diff --git a/settings.json.example b/settings.json.example index 8fc6340..84c3980 100644 --- a/settings.json.example +++ b/settings.json.example @@ -336,6 +336,11 @@ "color": 65280, "emoji": "🗿" }, + "newusers/reclaim": { + "icon": "", + "color": 65280, + "emoji": "🗿" + }, "managewiki/delete": { "icon": "", "color": 8421504, diff --git a/src/formatters/rc.py b/src/formatters/rc.py index 68ade18..6b4243d 100644 --- a/src/formatters/rc.py +++ b/src/formatters/rc.py @@ -303,6 +303,8 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c content = _("Account [{article}]({article_url}) was created by [{author}]({author_url}) and password was sent by email{comment}").format(article=change["title"], article_url=link, author=author, author_url=author_url, comment=parsed_comment) elif action == "newusers/newusers": 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 == "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, @@ -928,6 +930,9 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha elif action == "newusers/newusers": link = author_url embed["title"] = _("Created account") + elif action == "newusers/reclaim": + link = author_url + embed["title"] = _("Reclaimed account") elif action == "interwiki/iw_add": link = create_article_path("Special:Interwiki", WIKI_ARTICLE_PATH) embed["title"] = _("Added an entry to the interwiki table")