mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Fix #findzone to allow you to search using part of a zone's short name.
This commit is contained in:
parent
0b03f27660
commit
518bcb58d3
@ -4125,7 +4125,8 @@ void command_findzone(Client *c, const Seperator *sep)
|
|||||||
*/
|
*/
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
query = fmt::format(
|
query = fmt::format(
|
||||||
"SELECT zoneidnumber, short_name, long_name, version FROM zone WHERE long_name LIKE '%{}%'",
|
"SELECT zoneidnumber, short_name, long_name, version FROM zone WHERE long_name LIKE '%{}%' OR `short_name` LIKE '%{}%'",
|
||||||
|
EscapeString(sep->arg[1]),
|
||||||
EscapeString(sep->arg[1])
|
EscapeString(sep->arg[1])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user