Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 6, 2016 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/ad206482a952cbdd5b09 to your computer and use it in GitHub Desktop.
Save zoffixznet/ad206482a952cbdd5b09 to your computer and use it in GitHub Desktop.
class ModuleFinder {
method irc-to-me ($irc, $e, %res) {
return IRC_NOT_HANDLED unless %res<what> ~~ /^ 'module' \s+ $<module>=(.+)\s*/;
$irc.respond: |%res, :what("Link to module: http://modules.perl6.org/repo/$<module>");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment