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:
parent
8bb434f1fe
commit
73741e5418
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user