23 Oct 2007 16:58:02 UTC
- Distribution: Bot-Net
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (1 / 38 / 1)
- KwaliteeBus factor: 1
- License: perl_5
- Activity24 month
- Download (44.74KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionHANENKAMP Andrew Sterling Hanenkamp
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- POE STATES
- SEE ALSO
- COPYRIGHT AND LICENSE
Bot::Net::Mixin::Server::IRC - mixin class for building IRC servers
# Build a basic, no-frills IRC server use strict; use warnings; package MyBotNet::Server::Main; use Bot::Net::Server; use Bot::Net::Mixin::Server::IRC; 1;
This is the mixin-class for Bot::Net IRC servers. By using this class you create an IRC daemon:
use Bot::Net::Server; # define common Bot::Net server features use Bot::Net::Mixin::Server::IRC; # we're an IRC server
Setup a new IRC server.
Returns a base configuration for an IRC server daemon.
At startup, this hanlder loads the information stored in the configuration file and configures the IRC daemon.
Called by "on _start" to configure the authentication masks. This reads the "masks" section of the configuration and makes it so that only the users found in that configuration may successfully login.
This is called by "on _start" and reads the "operators" setting from the configuration file. That configuration will be used to grant logging users server op status.
This event handler initializes a listening port for each entry in the "listeners" setting of the configuration file. This is called by "on _start". For each listener initialized, it also reports a READY status message to the logs.
Run by "on _start", this handler intiates peer connections between IRC servers to create the IRC network. This will either notify the server that it should be anticipating an incoming connection from a peer or cause it to initiate a connection.
This causes the IRC daemon to close all connections and stop listening.
Andrew Sterling Hanenkamp
Copyright 2007 Boomer Consulting, Inc. All Rights Reserved.
This program is free software and may be modified and distributed under the same terms as Perl itself.