From abf3670392f65a9721a57e056fab9d6c69e00c6b Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 5 Jul 2018 20:03:41 +0200 Subject: [PATCH] ... I'm a stupid idiot. --- rcgcdw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index 3607617..5b4cf5e 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -251,8 +251,8 @@ def webhook_formatter(action, STATIC, **params): params["old_groups"] = _("none") if len(params["new_groups"]) < 4: params["new_groups"] = _("none") - reason = "| {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else "" - params["desc"] = _("Groups changed from {old_groups} to {new_groups}{is_reason} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], is_reason = ":" if reason else "", reason=reason) + reason = ": {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else "" + params["desc"] = _("Groups changed from {old_groups} to {new_groups} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], reason=reason) elif action == 2: link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=params["title"].replace(" ", "_")) embed["title"] = _("Protected {target}").format(target=params["title"])