Browse files

Documentation fixes. Props to MattOates++

  • Loading branch information...
1 parent 99e638d commit db46699850da54aebc01f0d201e49d243b5a4330 @TiMBuS committed Sep 28, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 README.pod
View
5 README.pod
@@ -12,15 +12,15 @@ Elegant. Simple. Probably compiles.
has %enemies = ('bob', 'sam', 'chanserv') X=> 1;
#Magical type constraints only let this event be called when $e.who is an enemy
multi method said ($e where {.who<nick> ~~ %enemies}) {
- $e.reply($e.msg); #Parrot back what was said;
+ $e.msg($e.what); #Parrot back what was said;
}
}
class AnnoyUsers does ExtraAnnoying {
#Will be called when the bot gets a join event
multi method joined ($e) {
- $e.reply("Hi there, {$e.who<nick>}!");
+ $e.msg("Hi there, {$e.who<nick>}!");
}
}
@@ -31,7 +31,6 @@ Elegant. Simple. Probably compiles.
channels => <#bottest>,
modules => (
- Net::IRC::DefaultHandlers.new(),
AnnoyUsers.new(),
Autoident.new(password => 'nspassw0rd')
),

0 comments on commit db46699

Please sign in to comment.