summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/Nopaste.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-05-31 04:51:29 -0500
committerJesse Luehrs <doy@tozt.net>2013-05-31 04:51:29 -0500
commit84640f1b3b402d2a64a5005d757f7171df2d658d (patch)
tree4c916aeffe0cecc9049400592a809f6e2b697135 /lib/Reply/Plugin/Nopaste.pm
parentcf4edf5661ed8cfaa392e5ee63b0d75a70ac0c87 (diff)
downloadreply-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.pm5
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 '';