Skip to content

Commit

Permalink
Documentation fixes. Props to MattOates++
Browse files Browse the repository at this point in the history
  • Loading branch information
Timbus committed Sep 28, 2012
1 parent 99e638d commit db46699
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.pod
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Elegant. Simple. Probably compiles.
has %enemies = ('bob', 'sam', 'chanserv') X=> 1; has %enemies = ('bob', 'sam', 'chanserv') X=> 1;
#Magical type constraints only let this event be called when $e.who is an enemy #Magical type constraints only let this event be called when $e.who is an enemy
multi method said ($e where {.who<nick> ~~ %enemies}) { 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 { class AnnoyUsers does ExtraAnnoying {
#Will be called when the bot gets a join event #Will be called when the bot gets a join event
multi method joined ($e) { multi method joined ($e) {
$e.reply("Hi there, {$e.who<nick>}!"); $e.msg("Hi there, {$e.who<nick>}!");
} }
} }


Expand All @@ -31,7 +31,6 @@ Elegant. Simple. Probably compiles.
channels => <#bottest>, channels => <#bottest>,


modules => ( modules => (
Net::IRC::DefaultHandlers.new(),
AnnoyUsers.new(), AnnoyUsers.new(),
Autoident.new(password => 'nspassw0rd') Autoident.new(password => 'nspassw0rd')
), ),
Expand Down

0 comments on commit db46699

Please sign in to comment.