[11173] Fixed substring search in .lookup pool

This commit is contained in:
VladimirMangos 2011-02-16 05:27:45 +03:00
parent bbdd04d1ab
commit e586354cea
2 changed files with 6 additions and 2 deletions

View file

@ -4699,7 +4699,11 @@ bool ChatHandler::HandleLookupPoolCommand(char * args)
for(uint16 pool_id = 0; pool_id < sPoolMgr.GetMaxPoolId(); ++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;
ShowPoolListHelper(pool_id);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11172"
#define REVISION_NR "11173"
#endif // __REVISION_NR_H__