From 967890310b1f7fb21ad29b529527bacda16c00dc Mon Sep 17 00:00:00 2001 From: Frisk Date: Wed, 14 Nov 2018 22:24:55 +0000 Subject: [PATCH 1/2] Abuse filter parameter changed which caused crashes (cherry picked from commit 2c43070ec3a379ef421f9f9b883361127bf3dcbc) --- rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index 202d618..9323d8e 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -602,7 +602,7 @@ def first_pass( old_groups=change["logparams"]["oldgroups"], new_groups=change["logparams"]["newgroups"]) elif combination == "abusefilter/modify": webhook_formatter(combination, STATIC_VARS, user=change["user"], desc=parsedcomment, - filternr=change["logparams"]['1']) + filternr=change["logparams"]['newId']) elif combination == "interwiki/iw_add": webhook_formatter(combination, STATIC_VARS, user=change["user"], desc=parsedcomment, prefix=change["logparams"]['0'], website=change["logparams"]['1']) From 4e5eae1869e4eb01a47f0d7ea797e41ac5f392b2 Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 15 Nov 2018 16:06:47 +0000 Subject: [PATCH 2/2] 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"])