From 4e5eae1869e4eb01a47f0d7ea797e41ac5f392b2 Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 15 Nov 2018 16:06:47 +0000 Subject: [PATCH] Updated with new CurseProfile extension changes (cherry picked from commit dc865539f4c6eddf2f2f21fb6d307aea1571998b) --- rcgcdw.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index 9323d8e..57f38f1 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -614,19 +614,19 @@ def first_pass( prefix=change["logparams"]['0']) elif combination == "curseprofile/comment-created": webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1], - commentid=change["logparams"]["0"]) + commentid=change["logparams"]["4:comment_id"]) elif combination == "curseprofile/comment-edited": webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1], - commentid=change["logparams"]["0"]) + commentid=change["logparams"]["4:comment_id"]) elif combination == "curseprofile/comment-deleted": webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1], - commentid=change["logparams"]["0"]) + commentid=change["logparams"]["4:comment_id"]) elif combination == "curseprofile/profile-edited": webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1], - field=change["logparams"]['0'], desc=change["parsedcomment"]) + field=change["logparams"]['4:section'], desc=change["parsedcomment"]) elif combination == "curseprofile/comment-replied": webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1], - commentid=change["logparams"]["0"]) + commentid=change["logparams"]["4:section"]) elif combination == "contentmodel/change": webhook_formatter(combination, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment, oldmodel=change["logparams"]["oldmodel"], newmodel=change["logparams"]["newmodel"])