3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

code-factoids: handle arguments a little better

This commit is contained in:
Pragmatic Software 2019-05-09 21:04:28 -07:00
parent 8bb434f1fe
commit 73741e5418
2 changed files with 2 additions and 2 deletions

View File

@ -998,7 +998,7 @@ sub handle_action {
# Check if it's an alias
if ($action =~ /^\/call\s+(.*)$/) {
my $command = $1;
$command .= " $stuff->{original_arguments}" if length $stuff->{original_arguments} and not $stuff->{aliased};
$command .= " $stuff->{original_arguments}" if length $stuff->{original_arguments} and not $stuff->{aliased} and not $stuff->{special} eq 'code-factoid';
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
$stuff->{keyword_override} = $1;

View File

@ -202,7 +202,7 @@ sub interpret {
$pbot->{logger}->log("=== Enter interpret_command: [" . (defined $stuff->{from} ? $stuff->{from} : "(undef)") . "][$stuff->{nick}!$stuff->{user}\@$stuff->{host}][$stuff->{interpret_depth}][$stuff->{command}]\n");
$stuff->{special} = "";
$stuff->{special} = "" unless exists $self->{special};
if ($self->{pbot}->{registry}->get_value('general', 'debugcontext')) {
use Data::Dumper;