mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
[Bug Fix] Fix typos in #zheader (#3370)
# Notes - Argument 2 and 3 were being used when it should have been arguments 1 and 2.
This commit is contained in:
parent
b329515a07
commit
21755a9f9e
@ -2,16 +2,16 @@
|
||||
|
||||
void command_zheader(Client *c, const Seperator *sep)
|
||||
{
|
||||
int arguments = sep->argnum;
|
||||
const auto arguments = sep->argnum;
|
||||
if (!arguments) {
|
||||
c->Message(Chat::White, "Usage: #zheader [Zone ID|Zone Short Name] [Version]");
|
||||
return;
|
||||
}
|
||||
|
||||
auto zone_id = (
|
||||
sep->IsNumber(2) ?
|
||||
Strings::ToUnsignedInt(sep->arg[2]) :
|
||||
ZoneID(sep->arg[2])
|
||||
const auto zone_id = (
|
||||
sep->IsNumber(1) ?
|
||||
Strings::ToUnsignedInt(sep->arg[1]) :
|
||||
ZoneID(sep->arg[1])
|
||||
);
|
||||
if (!zone_id) {
|
||||
c->Message(
|
||||
@ -26,9 +26,9 @@ void command_zheader(Client *c, const Seperator *sep)
|
||||
|
||||
auto zone_short_name = ZoneName(zone_id);
|
||||
auto zone_long_name = ZoneLongName(zone_id);
|
||||
auto version = (
|
||||
sep->IsNumber(3) ?
|
||||
Strings::ToUnsignedInt(sep->arg[3]) :
|
||||
const auto version = (
|
||||
sep->IsNumber(2) ?
|
||||
Strings::ToUnsignedInt(sep->arg[2]) :
|
||||
0
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user