From 1afc04b45cd7f333351d761a5b38906680d58359 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 27 Feb 2015 00:26:50 +0000 Subject: [PATCH] player tracher search - ignore leading @ character, to give reasonable behaviour when used like the old search system --- plugins/player-tracker.user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index 4f03be42..84e4d0b1 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -550,6 +550,8 @@ window.plugin.playerTracker.onSearchResultSelected = function(result, event) { window.plugin.playerTracker.onSearch = function(query) { var term = query.term.toLowerCase(); + if (term.length && term[0] == '@') term = term.substr(1); + $.each(plugin.playerTracker.stored, function(nick, data) { if(nick.toLowerCase().indexOf(term) === -1) return;