Skip to content

Commit

Permalink
move DefaultHandlers.pm to Handlers::Default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crab Qiu committed Jun 11, 2012
1 parent 03d0700 commit 734f7eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/Net/IRC/Bot.pm
@@ -1,5 +1,5 @@
use v6;
use Net::IRC::DefaultHandlers;
use Net::IRC::Handlers::Default;
use Net::IRC::Parser;
use Net::IRC::Event;

Expand Down Expand Up @@ -77,6 +77,10 @@ class Net::IRC::Bot {
method run() {
self!disconnect;
self!connect;

unless @.modules {
@.modules = (Net::IRC::Handlers::Default.new()),
}
loop {
#XXX: Support for timed events?
my $line = $conn.get
Expand Down
@@ -1,6 +1,6 @@
use v6;

class Net::IRC::DefaultHandlers {
class Net::IRC::Handlers::Default {
##Some default handler methods

#Error handler
Expand Down Expand Up @@ -96,3 +96,5 @@ class Net::IRC::DefaultHandlers {
}
}

# vim: ft=perl6 sw=4 expandtab

0 comments on commit 734f7eb

Please sign in to comment.