mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[11173] Fixed substring search in .lookup pool
This commit is contained in:
parent
bbdd04d1ab
commit
e586354cea
2 changed files with 6 additions and 2 deletions
|
|
@ -4699,7 +4699,11 @@ bool ChatHandler::HandleLookupPoolCommand(char * args)
|
||||||
for(uint16 pool_id = 0; pool_id < sPoolMgr.GetMaxPoolId(); ++pool_id)
|
for(uint16 pool_id = 0; pool_id < sPoolMgr.GetMaxPoolId(); ++pool_id)
|
||||||
{
|
{
|
||||||
PoolTemplateData const& pool_template = sPoolMgr.GetPoolTemplate(pool_id);
|
PoolTemplateData const& pool_template = sPoolMgr.GetPoolTemplate(pool_id);
|
||||||
if (pool_template.description.find(namepart) == std::wstring::npos)
|
|
||||||
|
std::string desc = pool_template.description;
|
||||||
|
strToLower(desc);
|
||||||
|
|
||||||
|
if (desc.find(namepart) == std::wstring::npos)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ShowPoolListHelper(pool_id);
|
ShowPoolListHelper(pool_id);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11172"
|
#define REVISION_NR "11173"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue