- 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.