diff options
Diffstat (limited to 'lib/Reply/Plugin/Nopaste.pm')
-rw-r--r-- | lib/Reply/Plugin/Nopaste.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/Nopaste.pm b/lib/Reply/Plugin/Nopaste.pm index fdcead9..a3fa909 100644 --- a/lib/Reply/Plugin/Nopaste.pm +++ b/lib/Reply/Plugin/Nopaste.pm @@ -11,9 +11,11 @@ use App::Nopaste; sub new { my $class = shift; + my %opts = @_; my $self = $class->SUPER::new(@_); $self->{history} = ''; + $self->{service} = $opts{service}; return $self; } @@ -68,6 +70,9 @@ sub command_nopaste { text => $self->{history}, desc => $line, lang => 'perl', + (defined $self->{service} + ? (services => [ $self->{service} ]) + : ()), ); return ''; |