Software /
code /
clix
Changeset
119:896a25ed6b1b
clix.roster: Turn off pattern matching in the list command (thanks mva)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Feb 2014 16:40:00 +0100 |
parents | 118:3456a6088dc6 |
children | 122:1dfd28db10bd |
files | clix/roster.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/roster.lua Tue Oct 08 14:54:05 2013 +0200 +++ b/clix/roster.lua Sat Feb 08 16:40:00 2014 +0100 @@ -70,7 +70,7 @@ for jid, item in pairs(conn.roster.items) do local name, host = item.name or split_jid(jid); local groups = table.concat(item.groups or {}, ", "); - if not param or ( (name and name:match(param)) or jid:match(param) ) then + if not param or ( (name and name:find(param, 1, true)) or jid:find(param, 1, true) ) then print(jid, name or host, groups); end end