From ed8ebb3f17c465fdbd54b82fcb5cb658fe8da5ca Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Mon, 21 Dec 2015 10:03:51 -0500 Subject: Fix doc examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 328bfe1..2bb94a5 100644 --- a/README.md +++ b/README.md @@ -42,14 +42,14 @@ processing the data. use IRC::Client::Plugin; # import constants unit class IRC::Client::Plugin::Debugger is IRC::Client::Plugin; -method register($irc) { +method irc-connected($irc) { Supply.interval( 5, 5 ).tap({ $irc.privmsg($_, "I'm an annoying bot!") for $irc.channels; }) } -method all-events ($irc, $e) { +method irc-all-events ($irc, $e) { say "We've got a private message" if $e eq 'PRIVMSG' and $e[0] eq $irc.nick; -- cgit v1.1