X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=mod_query%2Fmod_query.lua;fp=mod_query%2Fmod_query.lua;h=bd3414bd95764cd5c6d62147d9181e4af0e44d18;hp=a9524809b4948dc9afe010f4bdd4fde6b34cdf2e;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=29aae1975d46f66b97a2b873f1875eded8c6fbc3 diff --git a/mod_query/mod_query.lua b/mod_query/mod_query.lua index a952480..bd3414b 100644 --- a/mod_query/mod_query.lua +++ b/mod_query/mod_query.lua @@ -1,7 +1,7 @@ -- -- ion/query/mod_query.lua -- Some common queries for Ion -- --- Copyright (c) Tuomo Valkonen 2004-2008. +-- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- @@ -65,9 +65,10 @@ function mod_query.query(mplex, prompt, initvalue, handler, completor, wedln:complete('prev', 'normal') end - -- Check that no other queries are open in the mplex. - local ok=mplex:managed_i(function(r) - return not obj_is(r, "WEdln") + -- Check that no other queries or message boxes are open in the mplex. + local ok=mplex:managed_i(function(r) + return not (obj_is(r, "WEdln") or + obj_is(r, "WMessage")) end) if not ok then return