mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-03 13:17:33 +02:00
Quotegrabs: use split_line instead of parse_arguments
This commit is contained in:
parent
0979ac86d9
commit
648537f427
@ -169,7 +169,7 @@ sub grab_quotegrab {
|
|||||||
my ($grab_nick, $grab_history, $channel, $grab_nicks, $grab_text);
|
my ($grab_nick, $grab_history, $channel, $grab_nicks, $grab_text);
|
||||||
|
|
||||||
foreach my $grab (@grabs) {
|
foreach my $grab (@grabs) {
|
||||||
($grab_nick, $grab_history, $channel) = $self->{pbot}->{commands}->parse_arguments($grab);
|
($grab_nick, $grab_history, $channel) = $self->{pbot}->{interpreter}->split_line($grab, 1);
|
||||||
|
|
||||||
$grab_history = $nick eq $grab_nick ? 2 : 1 if not defined $grab_history; # skip grab command if grabbing self without arguments
|
$grab_history = $nick eq $grab_nick ? 2 : 1 if not defined $grab_history; # skip grab command if grabbing self without arguments
|
||||||
$channel = $from if not defined $channel;
|
$channel = $from if not defined $channel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user