From bf7fd64d936d37f548275bcb6a12acf5f1c2e536 Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 3 Jul 2018 22:02:11 +0200 Subject: [PATCH] Fixes to messages about group changes --- rcgcdw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index 2f1479a..acad31c 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -220,8 +220,8 @@ def webhook_formatter(action, STATIC, **params): #link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)')) embed["title"] = _("Deleted a comment on {target}'s profile").format(target=params["target"]) elif action == 20: - link = "https://{wiki}.gamepedia.com/".format(wiki=settings["wiki"])+params["user"].replace(" ", "_").replace(')', '\)') - embed["title"] = _("Changed group membership for {target}").format(target=params["user"]) + link = "https://{wiki}.gamepedia.com/User:".format(wiki=settings["wiki"])+params["title"].split(":")[1] + embed["title"] = _("Changed group membership for {target}").format(target=params["title"].split(":")[1]) if params["old_groups"].count(' ') < params["new_groups"].count(' '): embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif" if len(params["old_groups"]) < 4: