mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 06:18:21 +00:00
Update zonevariable.cpp
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
void command_zonevariable(Client *c, const Seperator *sep)
|
void command_zonevariable(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
const auto arguments = sep->argnum;
|
const uint16 arguments = sep->argnum;
|
||||||
|
|
||||||
if (!arguments) {
|
if (!arguments) {
|
||||||
c->Message(Chat::White, "Usage: #zonevariable clear - Clear all zone variables");
|
c->Message(Chat::White, "Usage: #zonevariable clear - Clear all zone variables");
|
||||||
@@ -86,14 +86,14 @@ void command_zonevariable(Client *c, const Seperator *sep)
|
|||||||
).c_str()
|
).c_str()
|
||||||
);
|
);
|
||||||
} else if (is_view) {
|
} else if (is_view) {
|
||||||
const auto &l = zone->GetVariables();
|
const auto& l = zone->GetVariables();
|
||||||
|
|
||||||
uint32 variable_count = 0;
|
uint32 variable_count = 0;
|
||||||
uint32 variable_number = 1;
|
uint32 variable_number = 1;
|
||||||
|
|
||||||
const std::string search_criteria = arguments >= 2 ? sep->argplus[2] : "";
|
const std::string search_criteria = arguments >= 2 ? sep->argplus[2] : "";
|
||||||
|
|
||||||
for (const auto &e: l) {
|
for (const auto& e : l) {
|
||||||
if (
|
if (
|
||||||
search_criteria.empty() ||
|
search_criteria.empty() ||
|
||||||
Strings::Contains(Strings::ToLower(e), Strings::ToLower(search_criteria))
|
Strings::Contains(Strings::ToLower(e), Strings::ToLower(search_criteria))
|
||||||
|
|||||||
Reference in New Issue
Block a user