Permalink
Browse files

move DefaultHandlers.pm to Handlers::Default.

  • Loading branch information...
1 parent 03d0700 commit 734f7ebb206ff68dfa6ce7b89dbef5248941aa51 Crab Qiu committed Jun 11, 2012
Showing with 8 additions and 2 deletions.
  1. +5 −1 lib/Net/IRC/Bot.pm
  2. +3 −1 lib/Net/IRC/{DefaultHandlers.pm → Handlers/Default.pm}
View
@@ -1,5 +1,5 @@
use v6;
-use Net::IRC::DefaultHandlers;
+use Net::IRC::Handlers::Default;
use Net::IRC::Parser;
use Net::IRC::Event;
@@ -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
@@ -1,6 +1,6 @@
use v6;
-class Net::IRC::DefaultHandlers {
+class Net::IRC::Handlers::Default {
##Some default handler methods
#Error handler
@@ -96,3 +96,5 @@ class Net::IRC::DefaultHandlers {
}
}
+# vim: ft=perl6 sw=4 expandtab
+

0 comments on commit 734f7eb

Please sign in to comment.