Skip Menu |

This queue is for tickets about the Bot-Pastebot CPAN distribution.

Report information
The Basics
Id: 41437
Status: resolved
Priority: 0/
Queue: Bot-Pastebot

People
Owner: Nobody in particular
Requestors: don [...] seiler.us
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: No Support for Server Passwords
Date: Thu, 4 Dec 2008 14:29:51 -0600
To: bug-Bot-Pastebot [...] rt.cpan.org
From: "Don Seiler" <don [...] seiler.us>
Bot::Pastebot doesn't support IRC server passwords. This is separate (and prior to) nickserv passwords that is unversal to everyone logging in. Is this bot being maintained? I'd really like to use this pastebot, but my new employer uses a server password. -- Don Seiler http://seilerwerks.wordpress.com ultimate: http://www.mufc.us
On Thu Dec 04 15:30:19 2008, don@seiler.us wrote: Show quoted text
> Bot::Pastebot doesn't support IRC server passwords. This is separate > (and prior to) nickserv passwords that is unversal to everyone logging > in. > > Is this bot being maintained? I'd really like to use this pastebot, > but my new employer uses a server password. >
Attached is a patch that adds support for the server password and allows ssl to be enabled. (Includes doc patch).
diff -Naur Bot-Pastebot-0.52/lib/Bot/Pastebot/Client/Irc.pm Bot-Pastebot-0.52-new/lib/Bot/Pastebot/Client/Irc.pm --- Bot-Pastebot-0.52/lib/Bot/Pastebot/Client/Irc.pm 2007-08-26 15:06:09.000000000 -0400 +++ Bot-Pastebot-0.52-new/lib/Bot/Pastebot/Client/Irc.pm 2009-02-12 08:25:59.000000000 -0500 @@ -78,6 +78,7 @@ server => LIST | REQUIRED, nick => LIST | REQUIRED, uname => SCALAR | REQUIRED, + server_pass => SCALAR, iname => SCALAR | REQUIRED, away => SCALAR | REQUIRED, flags => SCALAR, @@ -88,6 +89,7 @@ cver => SCALAR | REQUIRED, ccinfo => SCALAR | REQUIRED, localaddr => SCALAR, + use_ssl => SCALAR, nickserv_pass => SCALAR, }, ); @@ -158,6 +160,8 @@ Server => $chosen_server, Port => $chosen_port, Username => $conf{uname}, + Password => $conf{server_pass}, + UseSSL => $conf{use_ssl}, Ircname => $conf{iname}, LocalAddr => $conf{localaddr}, } diff -Naur Bot-Pastebot-0.52/pastebot Bot-Pastebot-0.52-new/pastebot --- Bot-Pastebot-0.52/pastebot 2007-08-26 15:07:21.000000000 -0400 +++ Bot-Pastebot-0.52-new/pastebot 2009-02-12 08:30:09.000000000 -0500 @@ -228,6 +228,8 @@ server irc.freenode.net 6667 server irc.freenode.net 7000 uname pastebot + server_pass s3krit + use_ssl 0 nickserv_pass password =over 2 @@ -322,6 +324,15 @@ IRC requires clients to send a short "user name" when establishing a connection. This parameter specifies that name. +=item use_ssl BOOLEAN + +Optional. Set this flag to a true value to connect over SSL. + +=item server_pass PASSWORD + +Optional. Some IRC servers require a private password to connect. This +parameter specifies that password. + =item nickserv_pass PASSWORD Specifies the password to use to identify to the NickServ nickname
Thank you for the patch. I've finally applied it, and your changes will be in the next release. commit cfdfcc47d3844912edd5f008353b9da5a208c129 Author: Don Seller <possum@cpan.org> Date: Sat Jul 13 12:30:57 2013 -0400 [rt.cpan.org 41437] Add options for server passwords and SSL. Applly Don Seller's patch from the RT ticket.