--
-- 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.
--
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
patterns=pat
elseif string.find(substr, "^[nN][aA][mM][eE]")
and patterns then
- for s in string.gfind(patterns, "%S+") do
+ for s in string.gmatch(patterns, "%S+") do
if not string.find(s, "[*?]") then
table.insert(mod_query.hostnicks, s)
end
local print_res
local function collect_print(...)
local tmp=""
+ local arg={...}
local l=#arg
for i=1,l do
tmp=tmp..tostring(arg[i])..(i==l and "\n" or "\t")
-- Descend into tables
if tocomp and string.len(tocomp)>=1 then
- for t in string.gfind(tocomp, "([^.:]*)[.:]") do
+ for t in string.gmatch(tocomp, "([^.:]*)[.:]") do
metas=false
if string.len(t)==0 then
comptab=env;