Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin/crypt] intercept all 'save'/'restore' commands

Not just the ones that only consist of that word.
  • Loading branch information...
commit 9397b250ffc6a1e48707acb0073b21e62cdfe2de 1 parent 471b630
@masak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/crypt
View
4 bin/crypt
@@ -88,12 +88,12 @@ open bag | close bag
inventory";
}
- when 'save' {
+ when /^ save>> / {
$save = $game.save;
say "Game saved.";
}
- when 'restore' {
+ when /^ restore>> / {
when !defined $save {
say "No game has been saved yet.";
}
Please sign in to comment.
Something went wrong with that request. Please try again.