diff options
Diffstat (limited to 'linden/indra/newview/llpaneldirpeople.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirpeople.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llpaneldirpeople.cpp b/linden/indra/newview/llpaneldirpeople.cpp index 64cde2d..cae2bef 100644 --- a/linden/indra/newview/llpaneldirpeople.cpp +++ b/linden/indra/newview/llpaneldirpeople.cpp | |||
@@ -75,10 +75,12 @@ void LLPanelDirPeople::performQuery() | |||
75 | 75 | ||
76 | // filter short words out of the query string | 76 | // filter short words out of the query string |
77 | // and indidate if we did have to filter it | 77 | // and indidate if we did have to filter it |
78 | // The shortest username is 2 characters long. | ||
79 | const S32 SHORTEST_WORD_LEN = 2; | ||
78 | bool query_was_filtered = false; | 80 | bool query_was_filtered = false; |
79 | std::string query_string = LLPanelDirBrowser::filter_short_words( | 81 | std::string query_string = LLPanelDirBrowser::filterShortWords( |
80 | childGetValue("name").asString(), | 82 | childGetValue("name").asString(), |
81 | mMinSearchChars, | 83 | SHORTEST_WORD_LEN, |
82 | query_was_filtered ); | 84 | query_was_filtered ); |
83 | 85 | ||
84 | // possible we threw away all the short words in the query so check length | 86 | // possible we threw away all the short words in the query so check length |
@@ -93,7 +95,7 @@ void LLPanelDirPeople::performQuery() | |||
93 | { | 95 | { |
94 | LLString::format_map_t args; | 96 | LLString::format_map_t args; |
95 | args["[FINALQUERY]"] = query_string; | 97 | args["[FINALQUERY]"] = query_string; |
96 | gViewerWindow->alertXml("SeachFilteredOnShortWords"); | 98 | gViewerWindow->alertXml("SeachFilteredOnShortWords", args); |
97 | }; | 99 | }; |
98 | 100 | ||
99 | setupNewSearch(); | 101 | setupNewSearch(); |