From 6fe5535765e46d28158e09a4e68268ebe2abdf6f Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Wed, 9 Jun 2021 17:36:19 +0200 Subject: [PATCH] add server_password option --- lib/App/Bot/BasicBot/Pluggable.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/App/Bot/BasicBot/Pluggable.pm b/lib/App/Bot/BasicBot/Pluggable.pm index 2d9b64e..1c03850 100644 --- a/lib/App/Bot/BasicBot/Pluggable.pm +++ b/lib/App/Bot/BasicBot/Pluggable.pm @@ -49,6 +49,7 @@ has channel => ( default => sub { [] } ); has password => ( is => 'rw', isa => 'Str' ); +has server_password => ( is => 'rw', isa => 'Str' ); has port => ( is => 'rw', isa => 'Int', default => 6667 ); has useipv6 => ( is => 'rw', isa => 'Bool', default => 1 ); has localaddr => ( is => 'rw', isa => 'Str' ); @@ -150,6 +151,7 @@ sub _create_bot { store => $self->store(), loglevel => $self->loglevel(), logconfig => $self->logconfig(), + password => $self->server_password(), ); }