X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_query%2Fmod_query.lua;fp=mod_query%2Fmod_query.lua;h=3685adedf95c5fc86c7ad6a7f95f171014669e3d;hb=c5d37fe7f5331a18a1a049aaa466f6ca6fc0f053;hp=d3ef7a06b031952a40a250cfb9a1286976526d30;hpb=3a185723014cbe1dd2871fdc2639f649931e01a3;p=ion3.git diff --git a/mod_query/mod_query.lua b/mod_query/mod_query.lua index d3ef7a0..3685ade 100644 --- a/mod_query/mod_query.lua +++ b/mod_query/mod_query.lua @@ -910,7 +910,7 @@ function mod_query.get_hostnicks(mplex) 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 @@ -1068,7 +1068,7 @@ function mod_query.do_complete_lua(env, str) -- 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;