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