From 47158e788f842b0a8f05c653854068e8d6a00060 Mon Sep 17 00:00:00 2001 From: rxi Date: Wed, 4 Mar 2015 20:20:11 +0000 Subject: [PATCH] Updated README.md for lurker.preswap() --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a64e8d..160eb94 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ scan detects any changes a hotswap is performed. ### lurker.preswap `lurker.preswap` can be set to a function. This function is called before a -hotswap occurs and is passed the name of the file which will be swapped. +hotswap occurs and is passed the name of the file which will be swapped. If the +function returns `true` then the hotswap is canceled. ```lua lurker.preswap = function(f) print("File " .. f .. " swapping...") end ```