From fe3e7c80cbc5a68699f8cf5888573038abcff1d3 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 19 Aug 2023 16:36:26 -0700 Subject: [PATCH] Interpreter: disallow /msg from vm-client --- lib/PBot/Core/Interpreter.pm | 2 +- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Core/Interpreter.pm b/lib/PBot/Core/Interpreter.pm index 9e2e7c37..2bac88ad 100644 --- a/lib/PBot/Core/Interpreter.pm +++ b/lib/PBot/Core/Interpreter.pm @@ -862,7 +862,7 @@ sub output_result($self, $context) { # /me stripped off $type = 'action'; } - elsif ($output =~ s/^\/msg\s+([^\s]+) //i) { + elsif ($context->{keyword} ne 'vm-client' && $output =~ s/^\/msg\s+([^\s]+) //i) { # /msg somenick stripped off $to = $1; # reset $to to output to somenick diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 66e0622b..fe690009 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4682, - BUILD_DATE => "2023-07-30", + BUILD_REVISION => 4683, + BUILD_DATE => "2023-08-19", }; sub initialize {}