mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-26 20:52:37 +01:00
Interpreter: disallow /msg from vm-client
This commit is contained in:
parent
64b4d8a53c
commit
fe3e7c80cb
@ -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
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user