From 4b5d27d9635f13344a00dd22db476028ae211c61 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 11 May 2022 11:43:03 +0200 Subject: [PATCH] Fixed an issue which caused onmessage handlers to not block further execution properly, causing execution of both custom reactions and commands, ref #357 --- CHANGELOG.md | 1 + src/NadekoBot/Services/Impl/BehaviorExecutor.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3554cfdb5..847d342c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. ### Fixed - `.give` DM will once again show an amount +- Fixed an issue with filters not working and with custom reactions no longer being able to override commands. ## [4.1.4] - 06-05-2022 diff --git a/src/NadekoBot/Services/Impl/BehaviorExecutor.cs b/src/NadekoBot/Services/Impl/BehaviorExecutor.cs index 06976b499..af135fbb2 100644 --- a/src/NadekoBot/Services/Impl/BehaviorExecutor.cs +++ b/src/NadekoBot/Services/Impl/BehaviorExecutor.cs @@ -116,6 +116,8 @@ public sealed class BehaviorHandler : IBehaviorHandler, INService usrMsg.Author.Id, usrMsg.Channel.Id, usrMsg.Content?.TrimTo(10)); + + return true; } } catch (Exception ex)