From 1a3f4f6b39188ac9b2a5f66ae97f6b6d8e7565d8 Mon Sep 17 00:00:00 2001 From: Frisk Date: Wed, 18 Nov 2020 14:05:31 +0100 Subject: [PATCH] Fix a crash --- src/rc_formatters.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rc_formatters.py b/src/rc_formatters.py index dc9adc6..e99ad63 100644 --- a/src/rc_formatters.py +++ b/src/rc_formatters.py @@ -57,9 +57,7 @@ def format_user(change, recent_changes, action): "Current params user {} and state of map_ips {}".format(change["user"], recent_changes.map_ips)) if action in ("edit", "new"): recent_changes.map_ips[change["user"]] += 1 - if settings.get("hide_ips", False): - change["user"] = _("Unregistered user") - change["user"] = "{author} ({amount})".format(author=change["user"], + change["user"] = "{author} ({amount})".format(author=change["user"] if settings.get("hide_ips", False) is False else _("Unregistered user"), amount=recent_changes.map_ips[change["user"]]) else: author_url = create_article_path("User:{}".format(change["user"].replace(" ", "_")))