| 1 | use strictscip-perl cpan POE-Component-IRC 6.95 strict/; |
| 2 | use warningsscip-perl cpan POE-Component-IRC 6.95 warnings/ FATAL => 'all'; |
| 3 | use libscip-perl cpan POE-Component-IRC 6.95 lib/ 't/inc'; |
| 4 | use POEscip-perl cpan POE-Component-IRC 6.95 POE/; |
| 5 | use POE::Component::Server::IRCscip-perl cpan POE-Component-IRC 6.95 POE/Component/Server/IRC/; |
| 6 | use Test::Morescip-perl cpan POE-Component-IRC 6.95 Test/More/ tests => 2; |
| 7 | |
| 8 | my $ircd = POE::Component::Server::IRC->spawnscip-perl cpan POE-Component-IRC 6.95 POE/Component/Server/IRC/spawn().(auth => 0); |
| 9 | isa_okscip-perl cpan POE-Component-IRC 6.95 main/isa_ok().($ircd, 'POE::Component::Server::IRC'); |
| 10 | |
| 11 | POE::Session->createscip-perl cpan POE-Component-IRC 6.95 POE/Session/create().( |
| 12 | package_states => [ |
| 13 | main => [ qw(_start) ] |
| 14 | ], |
| 15 | ); |
| 16 | |
| 17 | $poe_kernelscip-perl cpan POE-Component-IRC 6.95 main/$poe_kernel.->runscip-perl cpan POE-Component-IRC 6.95 main/run().(); |
| 18 | |
| 19 | sub _startscip-perl cpan POE-Component-IRC 6.95 main/_start(). { |
| 20 | my ($kernel) = $_scip-perl cpan POE-Component-IRC 6.95 main/`@_`.[KERNEL]; |
| 21 | passscip-perl cpan POE-Component-IRC 6.95 main/pass().('Session started'); |
| 22 | $ircd->yieldscip-perl cpan POE-Component-IRC 6.95 POE/Component/Server/IRC/yield().('shutdown'); |
| 23 | } |