GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  POE::COMPONENT::IRC::PLUGIN::NICKRECLAIM (3)

.ds Aq ’

NAME

POE::Component::IRC::Plugin::NickReclaim - A PoCo-IRC plugin for reclaiming your nickname

CONTENTS

SYNOPSIS



 use strict;
 use warnings;
 use POE qw(Component::IRC Component::IRC::Plugin::NickReclaim);

 my $nickname = Flibble . $$;
 my $ircname = Flibble the Sailor Bot;
 my $ircserver = irc.blahblahblah.irc;
 my $port = 6667;

 my $irc = POE::Component::IRC->spawn(
     nick => $nickname,
     server => $ircserver,
     port => $port,
     ircname => $ircname,
 ) or die "Oh noooo! $!";

 POE::Session->create(
     package_states => [
         main => [ qw(_start) ],
     ],
 );

  $poe_kernel->run();

 sub _start {
     $irc->yield( register => all );

     # Create and load our NickReclaim plugin, before we connect
     $irc->plugin_add( NickReclaim =>
         POE::Component::IRC::Plugin::NickReclaim->new( poll => 30 ) );

     $irc->yield( connect => { } );
     return;
 }



DESCRIPTION

POE::Component::IRC::Plugin::NickReclaim - A POE::Component::IRC plugin automagically deals with your bot’s nickname being in use and reclaims it when it becomes available again.

It registers and handles ’irc_433’ events. On receiving a 433 event it will reset the nickname to the ’nick’ specified with spawn or connect, appendedwith an underscore, and then poll to try and change it to the original nickname. If someone in your channel who has the nickname you’re after quits or changes nickname, the plugin will try to reclaim it immediately.

METHODS

CWnew

Takes one optional argument:

<B>’poll’B>, the number of seconds between nick change attempts, default is 30;

Returns a plugin object suitable for feeding to POE::Component::IRC’s plugin_add method.

AUTHOR

Chris ’BinGOs’ Williams

With amendments applied by Zoffix Znet

SEE ALSO

POE::Component::IRC
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POE::COMPONENT::IRC::PLUGIN::NICKRECLAIM (3) 2014-06-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.