Subject: | Missing feature: support for password protected channels (with patch) |
Date: | Sat, 19 Sep 2015 17:11:37 +0200 |
To: | bug-Bot-BasicBot [...] rt.cpan.org |
From: | Rubén Llorente <blackrider [...] openmailbox.org> |
The current BasicBot does not support accessing password protected
channels. The patch included allows BasicBot to access password
protected channels.
Example of bot construction follows:
#!/usr/bin/perl
use strict;
use warnings;
use autodie;
use Bot::BasicBot;
# Define variables for bot operation.
my $botnick = "Arelor";
my $server = "some-server.net;
my $port = "6667";
my $channel = "#test";
my %channel_passwords = (
$channel => "Password1",
);
$robot = Bot::BasicBot->new(
server => "$server",
port => "$port",
channels => ["$channel"],
channel_passwords => \%channel_passwords
nick => "$botnick",
);
## Then the rest of the code.
--
OpenPGP Key Fingerprint:
BB5A C2A2 2CAD ACB7 D50D C081 1DB9 6FC4 5AB7 92FA
OpenPGP Key ID:
5AB792FA
Message body is not shown because sender requested not to inline it.