X-Git-Url: http://git.annexia.org/?p=xavierbot.git;a=blobdiff_plain;f=xavierbot.pl.in;h=55ddae6726366f1795b6c06fbd5a8f4d1caea57a;hp=f1a4cc8fdf39ffbbf53f2e7821ce9039c99d315a;hb=e510484ab8b113b43cf95a18820ad3a0629edf4b;hpb=3cd6e84fb16187e3d85775397d35f5c432064e63 diff --git a/xavierbot.pl.in b/xavierbot.pl.in index f1a4cc8..55ddae6 100755 --- a/xavierbot.pl.in +++ b/xavierbot.pl.in @@ -2,11 +2,12 @@ # xavierbot : an OCaml interpreter IRC bot. # By Richard W.M. Jones . # This code is in the Public Domain. -# $Id: xavierbot.pl.in,v 1.9 2008/01/23 15:44:46 rjones Exp $ +# $Id: xavierbot.pl.in,v 1.10 2010/04/04 19:38:40 rjones Exp $ use strict; use POE qw(Component::IRC Wheel::Run); use Getopt::Long; +use POE::Component::IRC::Plugin::NickServID; #---------------------------------------------------------------------- # Start of configuration. @@ -17,6 +18,8 @@ my $server = "chat.freenode.net"; my $port = 6667; my $channel = "#ocaml"; +my $nickservpw = "123456"; # or undef + # End of configuration. #---------------------------------------------------------------------- @@ -62,6 +65,11 @@ sub _start port => $port, ) or die "POE::Component::IRC->spawn failed: $!"; + $irc->plugin_add('NickServID', + POE::Component::IRC::Plugin::NickServID->new( + Password => $nickservpw, + )); + my $ocaml = start_toplevel (); $kernel->sig(CHLD => qw(got_sigchld));