Permalink
Browse files

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

Not just the ones that only consist of that word.
  • Loading branch information...
masak committed Aug 1, 2012
1 parent 471b630 commit 9397b250ffc6a1e48707acb0073b21e62cdfe2de
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/crypt
View
@@ -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.";
}

0 comments on commit 9397b25

Please sign in to comment.