3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-28 23:09:39 +01:00

Interpreter: disallow /msg from vm-client

This commit is contained in:
Pragmatic Software 2023-08-19 16:36:26 -07:00
parent 64b4d8a53c
commit fe3e7c80cb
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 {}