From b23be7d0135f9349f191d84b70c41f23a7d7c445 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Wed, 16 May 2018 19:16:38 +0000 Subject: [PATCH] headpat: ignore forwards --- stdplugins/headpat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdplugins/headpat.py b/stdplugins/headpat.py index 2c3e248..24f5374 100644 --- a/stdplugins/headpat.py +++ b/stdplugins/headpat.py @@ -19,6 +19,9 @@ oops = "OOPSIE WOOPSIE!! Uwu We madea fucky wucky!! A wittle fucko boingo! " \ @borg.on(events.NewMessage) async def on_pat(event): + if event.forward: + return + user = borg.me.username if not user or not re.match(fr"(?i)/headpat@{user}", event.raw_text):