clix.roster: Turn off pattern matching in the list command (thanks mva)

Sat, 08 Feb 2014 16:40:00 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 08 Feb 2014 16:40:00 +0100
changeset 121
896a25ed6b1b
parent 120
3456a6088dc6
child 122
1dfd28db10bd

clix.roster: Turn off pattern matching in the list command (thanks mva)

clix/roster.lua file | annotate | diff | comparison | revisions
--- 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

mercurial