diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-05-31 04:51:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-05-31 04:51:29 -0500 |
commit | 84640f1b3b402d2a64a5005d757f7171df2d658d (patch) | |
tree | 4c916aeffe0cecc9049400592a809f6e2b697135 /lib/Reply/Plugin/Nopaste.pm | |
parent | cf4edf5661ed8cfaa392e5ee63b0d75a70ac0c87 (diff) | |
download | reply-84640f1b3b402d2a64a5005d757f7171df2d658d.tar.gz reply-84640f1b3b402d2a64a5005d757f7171df2d658d.zip |
add some configuration to a couple plugins
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 ''; |