Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created September 2, 2012 16:47
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 KamilaBorowska/3601377 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/3601377 to your computer and use it in GitHub Desktop.
class Net::IRC::Modules::FromThisPointPrefixIsRequired {
has $.prefix = die "You need to specify prefix!";
multi method said ( $ev ) {
if $ev.what .= subst: $.prefix, "" {
$ev.what = "";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment