Fix #findzone to allow you to search using part of a zone's short name.

This commit is contained in:
Alex 2020-05-09 18:12:24 -04:00
parent 0b03f27660
commit 518bcb58d3

View File

@ -4125,7 +4125,8 @@ void command_findzone(Client *c, const Seperator *sep)
*/
if (id == 0) {
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])
);
}